Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 43 for useJUnitJupiter (0.17 sec)

  1. build-logic/buildquality/src/main/kotlin/gradlebuild.arch-test.gradle.kts

    notForAccessorGeneration {
        dependencies {
            sharedArchTestClasses(project(":internal-architecture-testing"))
        }
    }
    
    testing {
        suites {
            create("archTest", JvmTestSuite::class) {
                useJUnitJupiter()
                dependencies {
                    implementation(project.dependencies.create(project))
                    notForAccessorGeneration {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 13:29:44 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. platforms/jvm/plugins-jvm-test-fixtures/src/integTest/groovy/org/gradle/java/fixtures/StandaloneTestFixturesIntegrationTest.groovy

            file("consumer/build.gradle") << """
                plugins {
                    id 'java-library'
                }
                ${mavenCentralRepository()}
                testing.suites.test {
                    useJUnitJupiter()
                    dependencies {
                        implementation testFixtures(project(':'))
                    }
                }
            """
    
            file("consumer/src/test/java/ExampleTest.java") << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Oct 13 11:38:02 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/testing/test-suite-multi-configure-each-extracted/kotlin/build.gradle.kts

    group = "org.gradle.sample"
    
    repositories {
        mavenCentral()
    }
    
    // tag::multi-configure[]
    testing {
        suites {
            val applyMockito = { suite: JvmTestSuite -> // <1>
                suite.useJUnitJupiter()
                suite.dependencies {
                    implementation("org.mockito:mockito-junit-jupiter:4.6.1")
                }
            }
    
            /* This is the equivalent of:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  4. testing/smoke-test/src/smokeTest/groovy/org/gradle/smoketests/TestRetryPluginSmokeTest.groovy

        def 'test retry plugin with test suites'() {
            given:
            buildFile << """
                testing {
                    suites {
                        test {
                            useJUnitJupiter('5.7.1')
                            targets {
                                all {
                                    testTask.configure {
                                        def markerFile = file("marker.file")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r85/TestLauncherDebugCrossVersionTest.groovy

                }
                repositories {
                    mavenCentral()
                }
                testing {
                    suites {
                        test {
                            useJUnitJupiter()
                        }
                    }
                }
                tasks.named('test') {
                    testLogging {
                        showStandardStreams = true
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 29 08:00:25 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  6. platforms/ide/ide/src/integTest/groovy/org/gradle/plugins/ide/eclipse/EclipseTestConfigurationsWithExternalDependenciesIntegrationTest.groovy

            """
            buildFile << """
                ${mavenCentralRepository()}
    
                testing {
                    suites {
                        integration(JvmTestSuite) {
                            useJUnitJupiter()
                        }
                    }
                }
            """
    
            when:
            run 'eclipse'
    
            then:
            assertJarDependencyHasTestAttribute('junit-platform-engine')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  7. testing/smoke-test/src/smokeTest/groovy/org/gradle/smoketests/SpringBootPluginSmokeTest.groovy

                }
    
                dependencies {
                    implementation 'org.springframework.boot:spring-boot-starter'
                }
    
                testing.suites.test {
                    useJUnitJupiter()
                    dependencies {
                        implementation 'org.springframework.boot:spring-boot-starter-test'
                    }
                }
            """.stripIndent()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 17:10:15 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  8. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/TestVerificationFailureHandlingIntegrationTest.groovy

                plugins {
                  id 'java'
                }
    
                ${mavenCentralRepository()}
    
                testing {
                    suites {
                        test {
                            useJUnitJupiter()
                        }
                    }
                }
            """
        }
    
        def 'task does not execute when it has a test task output dependency and VM exits unexpectedly'() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  9. platforms/jvm/language-java/src/integTest/groovy/org/gradle/java/compile/jpms/test/JavaModuleBackboxTestExcutionIntegrationTest.groovy

            then:
            succeeds ':test'
        }
    
        def "runs JUnit5 blackbox test as module using the module path"() {
            given:
            buildFile << """
                testing.suites.test.useJUnitJupiter()
            """
    
            when:
            consumingModuleInfo('exports consumer')
            consumingModuleClass()
            testModuleInfo('requires consumer', 'requires org.junit.jupiter.api')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  10. testing/public-api-tests/src/integTest/groovy/org/gradle/api/PublicApiIntegrationTest.groovy

                    implementation("org.gradle.experimental:gradle-public-api:${apiJarVersion}")
                }
    
                testing {
                    suites {
                        test {
                            useJUnitJupiter()
                        }
                    }
                }
    
                repositories {
                    maven {
                        url = uri("${apiJarRepoLocation.toURI()}")
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 08:43:08 UTC 2024
    - 8.8K bytes
    - Viewed (0)
Back to top