Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 101 for integrationTests (0.16 sec)

  1. platforms/documentation/docs/src/snippets/testing/test-suite-configure-source-dir/kotlin/build.gradle.kts

    testing {
        suites {
            val integrationTest by registering(JvmTestSuite::class) { // <1>
                sources { // <2>
                    java { // <3>
                        setSrcDirs(listOf("src/it/java")) // <4>
                    }
                }
            }
        }
    }
    // end::configure-source-dir[]
    
    // tag::configure-test-task[]
    testing {
        suites {
            val integrationTest by getting(JvmTestSuite::class) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/java/basic/kotlin/build.gradle.kts

    }
    // end::java-compiler-options[]
    
    // tag::java-release-flag[]
    tasks.compileJava {
        options.release = 7
    }
    // 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
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  3. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/TestOptionsIntegrationSpec.groovy

                            useJUnitJupiter()
                        }
                        integrationTest(JvmTestSuite) {
                            useJUnitJupiter()
                        }
                    }
                }
    
                tasks.named('check') {
                    dependsOn(testing.suites.integrationTest)
                }
            """.stripIndent()
    
            expect:
            succeeds("check")
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/testing/test-suite-configure-source-dir/groovy/build.gradle

    testing {
        suites {
            integrationTest(JvmTestSuite) { // <1>
                sources { // <2>
                    java { // <3>
                        srcDirs = ['src/it/java'] // <4>
                    }
                }
            }
        }
    }
    // end::configure-source-dir[]
    
    // tag::configure-test-task[]
    testing {
        suites {
            integrationTest {
                targets {
                    all { // <1>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  5. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testsuites/TestNGOptionsIntegrationTest.groovy

        }
    
        def "options for test framework are respected for TestNG for custom test suite"() {
            buildFile << """
                testing {
                    suites {
                        integrationTest(JvmTestSuite) {
                            useTestNG()
                            targets.all {
                                testTask.configure {
                                    options {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/snippets/testing/test-suite-plugin/groovy/build.gradle

    repositories {
        mavenCentral()
    }
    
    // tag::configure-testing-extension[]
    testing {
        suites { // <1>
            test { // <2>
                useJUnitJupiter() // <3>
            }
    
            integrationTest(JvmTestSuite) { // <4>
                dependencies {
                    implementation project() // <5>
                }
    
                targets { // <6>
                    all {
                        testTask.configure {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/testing/test-suite-multi-configure-each-matching/kotlin/build.gradle.kts

    testing {
        suites {
            withType(JvmTestSuite::class).matching { it.name in listOf("test", "integrationTest") }.configureEach { // <1>
                useJUnitJupiter()
                dependencies {
                    implementation("org.mockito:mockito-junit-jupiter:4.6.1")
                }
            }
            val integrationTest by registering(JvmTestSuite::class)
            val functionalTest by registering(JvmTestSuite::class) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  8. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/AbstractIntegrationTest.java

    import org.junit.After;
    import org.junit.Rule;
    import org.junit.experimental.categories.Category;
    
    import java.io.File;
    import java.util.List;
    
    @IntegrationTest
    @Category(IntegrationTest.class)
    public abstract class AbstractIntegrationTest {
    
        @Rule
        public final PreconditionVerifier preconditionVerifier = new PreconditionVerifier();
    
        @Rule
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 09:04:13 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  9. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testsuites/JUnitOptionsIntegrationTest.groovy

        }
    
        def "options for test framework are respected for JUnit for custom test suite"() {
            buildFile << """
                testing {
                    suites {
                        integrationTest(JvmTestSuite) {
                            useJUnit()
                            targets.all {
                                testTask.configure {
                                    options {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/docs/userguide/jvm/jvm_test_suite_plugin.adoc

    <4> Define a new suite called `integrationTest`.  Note that all suites other than the built-in `test` suite will by convention work as if `useJUnitJupiter()` was called.  You do *not* have to explicitly configure the testing framework on these additional suites, unless you wish to change to another framework.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 14:47:11 UTC 2024
    - 18.6K bytes
    - Viewed (0)
Back to top