Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 63 for useTestNG (0.26 sec)

  1. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGPreserveOrderNotSupportedIntegrationTest.groovy

            given:
            buildFile << """
                apply plugin: 'java'
                ${mavenCentralRepository()}
                dependencies { testImplementation 'org.testng:testng:5.14.4' }
                test { useTestNG { preserveOrder true } }
            """
    
            file("src/test/java/SimpleTest.java") << """
                import org.testng.annotations.Test;
    
                public class SimpleTest {
    
                    @Test
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  2. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/generator/FileContentGenerator.groovy

                }
                """
            }
    
            """
            package ${packageName(classNumber, subProjectNumber)};
            ${imports}
            import org.${config.useTestNG ? 'testng.annotations' : 'junit'}.Test;
            import static org.${config.useTestNG ? 'testng' : 'junit'}.Assert.*;
    
            public class Test$classNumber {
                Production$classNumber objectUnderTest = new Production$classNumber();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/testing/test-suite-configure-default-suite/kotlin/build.gradle.kts

    version = "1.0.2"
    group = "org.gradle.sample"
    
    repositories {
        mavenCentral()
    }
    
    // tag::configure-default-suite[]
    testing {
        suites {
            val test by getting(JvmTestSuite::class) {
                useTestNG() // <1>
    
                targets {
                    all {
                        testTask.configure { // <2>
                            // set a system property for the test JVM(s)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  4. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGPreserveOrderIntegrationTest.groovy

            buildFile << """
                apply plugin: 'java'
                ${mavenCentralRepository()}
                dependencies { testImplementation 'org.testng:testng:$version' }
                test {
                    useTestNG { preserveOrder true }
                    onOutput { test, event -> print "\$event.message" }
                }
            """
    
            file("src/test/java/Test1.java") << """
                import org.testng.annotations.AfterClass;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  5. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGFailFastIntegrationTest.groovy

            given:
            buildFile.text = generator.initBuildFile(maxWorkers)
            buildFile << """
                test {
                    useTestNG() {
                        parallel = '$parallel'
                        threadCount = $threadCount
                    }
                }
            """.stripIndent()
            def resourceForTest = generator.withFailingTests(6)
    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/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGTestOutputListenerTest.groovy

            buildFile << """
                apply plugin: 'java'
                ${mavenCentralRepository()}
                dependencies { testImplementation 'org.testng:testng:6.3.1' }
    
                test {
                    useTestNG()
                    testLogging.showStandardStreams = true
                }
            """.stripIndent()
    
            when: "run with quiet"
            executer.withArguments("-q")
            succeeds('test')
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  7. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGMultiVersionTest.groovy

                """.stripIndent()
            }
    
            @Override
            String getConfigureTestFramework() {
                return "useTestNG()"
            }
    
            @Override
            String getIncludeCategoryOrTagConfigurationElement() {
                // TODO implement this if needed
                throw new UnsupportedOperationException()
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  8. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGFailOnNoTestIntegrationTest.groovy

                ${mavenCentralRepository()}
                dependencies {
                    testImplementation 'org.testng:testng:$LATEST_TESTNG_VERSION'
                }
                test {
                    useTestNG()
                }
            """
    
            file("src/test/java/NotATest.java") << """
                // missing @org.testng.annotations.Test
                public class NotATest {}
            """
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  9. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGGroupByInstancesIntegrationTest.groovy

            buildFile << """
                apply plugin: 'java'
                ${mavenCentralRepository()}
                dependencies { testImplementation 'org.testng:testng:$version' }
                test {
                    useTestNG {
                        suiteName 'Suite Name'
                        testName 'Test Name'
                        groupByInstances true
                    }
                    onOutput { test, event -> print "\$event.message" }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  10. platforms/jvm/testing-jvm/src/test/groovy/org/gradle/api/internal/tasks/testing/testng/TestNGTestFrameworkTest.groovy

            then:
            processor instanceof TestNGTestClassProcessor
            framework.detector
        }
    
        def "can configure TestNG with an Action"() {
            when:
            testTask.useTestNG { TestNGOptions options ->
                options.suiteName = 'Custom Suite'
            }
    
            then:
            testTask.options.suiteName == 'Custom Suite'
        }
    
        TestNGTestFramework createFramework() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 15:59:04 UTC 2024
    - 2.1K bytes
    - Viewed (0)
Back to top