Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 50 for testClassesDirs (0.26 sec)

  1. platforms/documentation/docs/src/snippets/buildCache/integration-tests/groovy/build.gradle

    plugins {
        id('java-library')
    }
    
    sourceSets {
        integTest
    }
    
    tasks.register("integTest", Test) {
        classpath = sourceSets.integTest.runtimeClasspath
        testClassesDirs = sourceSets.integTest.output.classesDirs
    }
    
    // tag::integTest[]
    tasks.named('integTest') {
        inputs.property("operatingSystem") {
            System.getProperty("os.name")
        }
    }
    // end::integTest[]
    
    // tag::distributionPathInput[]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  2. build-logic/buildquality/src/main/kotlin/gradlebuild.arch-test.gradle.kts

                    }
                }
                targets {
                    all {
                        testTask.configure {
                            testClassesDirs += sharedArchTestClasses.filter { it.isDirectory }
                            classpath += sourceSets.main.get().output.classesDirs
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 13:29:44 UTC 2024
    - 3K bytes
    - Viewed (0)
  3. platforms/jvm/jacoco/src/testFixtures/groovy/org/gradle/testing/jacoco/plugins/fixtures/JavaProjectUnderTest.groovy

                        runtimeClasspath += output + compileClasspath
                    }
                }
    
                task integrationTest(type: Test) {
                    testClassesDirs = sourceSets.integrationTest.output.classesDirs
                    classpath = sourceSets.integrationTest.runtimeClasspath
                }
    
                task jacocoIntegrationTestReport(type: JacocoReport) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 14 16:03:36 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  4. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/AbstractJUnitTestClassDetectionIntegrationTest.groovy

                }
    
                task othertestsTest(type:Test){
                    ${configureTestFramework}
                    classpath = sourceSets.othertests.runtimeClasspath
                    testClassesDirs = sourceSets.othertests.output.classesDirs
                }
            """.stripIndent()
    
            and:
            file("src/othertests/java/SomeTestClass.java") << """
                ${testFrameworkImports}
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  5. testing/precondition-tester/build.gradle.kts

            setupPreconditionTesting()
        }
    }
    
    fun Test.setupPreconditionTesting() {
        // We only want to execute our special tests
        // so we override what classes are going to run
        testClassesDirs = sourceSets.test.get().output.classesDirs
        // All test should have this project's "test" source set on their classpath
        classpath += sourceSets.test.get().output
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 08 04:59:12 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/docs/dsl/org.gradle.api.tasks.testing.Test.xml

                    <tr>
                        <td>Name</td>
                        <td>Default with <literal>java</literal> plugin</td>
                    </tr>
                </thead>
                <tr>
                    <td>testClassesDirs</td>
                    <td><literal>project.sourceSets.test.output.classesDirs</literal></td>
                </tr>
                <tr>
                    <td>classpath</td>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  7. platforms/jvm/testing-jvm/src/main/java/org/gradle/api/tasks/testing/Test.java

         *     testClassesDirs = sourceSets.integrationTest.output.classesDirs
         *     classpath = sourceSets.integrationTest.runtimeClasspath
         * }
         * </pre>
         *
         * @param testClassesDirs All test class directories to be used.
         * @since 4.0
         */
        public void setTestClassesDirs(FileCollection testClassesDirs) {
            this.testClassesDirs = testClassesDirs;
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 42.6K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/snippets/java/basic/kotlin/build.gradle.kts

    }
    // end::java-release-flag[]
    
    // tag::integ-test-task[]
    val integrationTest = task<Test>("integrationTest") {
        description = "Runs integration tests."
        group = "verification"
    
        testClassesDirs = sourceSets["intTest"].output.classesDirs
        classpath = sourceSets["intTest"].runtimeClasspath
        shouldRunAfter("test")
    
        useJUnitPlatform()
    
        testLogging {
            events("passed")
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  9. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/AbstractTestReportIntegrationTest.groovy

                def otherTests = tasks.register('otherTests', Test) {
                    binaryResultsDirectory = file("bin")
                    classpath = files('blahClasspath')
                    testClassesDirs = files("blah")
                    ${configureTestFramework}
                }
    
                tasks.register('testReport', TestReport) {
                    testResults.from(test, otherTests)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  10. testing/smoke-test/build.gradle.kts

                delete(remoteProject.map { it.outputDirectory })
            }
        }
    
        fun SmokeTest.configureForSmokeTest(remoteProjectOutputFiles: Any? = null) {
            group = "Verification"
            testClassesDirs = smokeTestSourceSet.output.classesDirs
            classpath = smokeTestSourceSet.runtimeClasspath
            maxParallelForks = 1 // those tests are pretty expensive, we shouldn't execute them concurrently
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 6.4K bytes
    - Viewed (0)
Back to top