Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for testKitDir (1.4 sec)

  1. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/undeclared/UndeclaredBuildInputsTestKitInjectedJavaPluginIntegrationTest.groovy

            private final IntegrationTestBuildContext buildContext
            private final TestFile testKitDir
    
            TestKitBackedGradleExecuter(GradleDistribution distribution, TestDirectoryProvider testDirectoryProvider, IntegrationTestBuildContext buildContext, TestFile testKitDir) {
                super(distribution, testDirectoryProvider)
                this.testKitDir = testKitDir
                this.buildContext = buildContext
            }
    
            @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  2. testing/smoke-test/src/smokeTest/groovy/org/gradle/smoketests/AbstractGradleceptionSmokeTest.groovy

        protected void run(List<String> tasks, File testKitDir = null) {
            result = null
            result = runnerFor(tasks, testKitDir).build()
        }
    
        protected void fails(List<String> tasks, File testKitDir = null) {
            result = null
            result = runnerFor(tasks, testKitDir).buildAndFail()
        }
    
        private SmokeTestGradleRunner runnerFor(List<String> tasks, File testKitDir) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4K bytes
    - Viewed (0)
  3. platforms/extensibility/test-kit/src/main/java/org/gradle/testkit/runner/internal/ConstantTestKitDirProvider.java

    import java.io.File;
    
    class ConstantTestKitDirProvider implements TestKitDirProvider {
        private final File testKitDir;
    
        public ConstantTestKitDirProvider(File testKitDir) {
            this.testKitDir = testKitDir;
        }
    
        @Override
        public File getDir() {
            return testKitDir;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 963 bytes
    - Viewed (0)
  4. platforms/extensibility/test-kit/src/integTest/groovy/org/gradle/testkit/runner/GradleRunnerDaemonIntegrationTest.groovy

        @CustomDaemonDirectory
        def "user daemon process does not reuse existing daemon process intended for test execution even when using same gradle user home"() {
            given:
            def defaultDaemonDir = testKitDir.file("daemon")
            def nonTestKitDaemons = daemons(defaultDaemonDir, gradleVersion)
    
            when:
            runner().build()
    
            then:
            def testKitDaemon = testKitDaemons().daemon
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  5. platforms/extensibility/test-kit/src/integTest/groovy/org/gradle/testkit/runner/GradleRunnerConfigurationIntegrationTest.groovy

    class GradleRunnerConfigurationIntegrationTest extends BaseGradleRunnerIntegrationTest {
    
        def "throws exception if no project dir was specified"() {
            given:
            def runner = GradleRunner.create().withTestKitDir(testKitDir)
    
            when:
            runner.build()
    
            then:
            def t = thrown InvalidRunnerConfigurationException
            t.message == 'Please specify a project directory before executing the build'
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  6. testing/smoke-test/src/smokeTest/groovy/org/gradle/smoketests/AbstractGradleBuildConfigurationCacheSmokeTest.groovy

                    "-D${ConfigurationCacheMaxProblemsOption.PROPERTY_NAME}=$maxConfigurationCacheProblems".toString(),
                ]
            }
            run(
                tasks + ccOptions,
                // use a unique testKitDir per daemonId other than 0 as 0 means default daemon.
                daemonId != 0 ? file("test-kit/$daemonId") : null
            )
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  7. platforms/extensibility/test-kit/src/integTest/groovy/org/gradle/testkit/runner/enduser/BaseTestKitEndUserIntegrationTest.groovy

                    allprojects {
                        tasks.withType(Test) {
                            systemProperty "$DefaultGradleRunner.TEST_KIT_DIR_SYS_PROP", "${TextUtil.normaliseFileSeparators(testKitDir.absolutePath)}"
                            systemProperty "java.io.tmpdir", "${TextUtil.normaliseFileSeparators(file("tmp").createDir().absolutePath)}"
                        }
                    }
                """)
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  8. platforms/extensibility/test-kit/src/integTest/groovy/org/gradle/testkit/runner/GradleRunnerIsolationIntegrationTest.groovy

            and:
            buildScript """
                task check {
                    doLast {
                        // Uses testkit dir
                        assert gradle.gradleUserHomeDir == file(new URI("${testKitDir.toURI()}"))
                        assert !project.ext.has('myProp1')
                        assert !project.ext.has('myProp2')
                    }
                }
            """
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  9. platforms/extensibility/test-kit/src/integTest/groovy/org/gradle/testkit/runner/GradleRunnerGradleVersionIntegrationTest.groovy

            // Note: AbstractGradleRunnerIntegTest configures the test env to use this gradle user home dir
            file("gradleHomeDir.txt").text.startsWith(buildContext.gradleUserHomeDir.absolutePath)
    
            and:
            testKitDir.eachFileRecurse {
                assert !it.name.contains("gradle-$lowestMajorGradleVersion-bin.zip")
            }
    
            cleanup:
            killDaemons(lowestMajorGradleVersion)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 4.1K bytes
    - Viewed (0)
Back to top