Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 46 for useTestNG (0.33 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. platforms/core-runtime/logging/src/integTest/groovy/org/gradle/internal/logging/console/jvm/ConsoleTestNGUnsupportedTestWorkerFunctionalTest.groovy

            given:
            buildFile << """
                plugins {
                    id 'java-library'
                }
    
                ${mavenCentralRepository()}
    
                testing.suites.test {
                    useTestNG('$TESTNG_VERSION')
                    targets.test.testTask.configure {
                        maxParallelForks = $MAX_WORKERS
                    }
                }
            """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/docs/dsl/org.gradle.api.tasks.testing.Test.xml

                </tr>
                <tr>
                    <td>useJUnit</td>
                </tr>
                <tr>
                    <td>useJUnitPlatform</td>
                </tr>
                <tr>
                    <td>useTestNG</td>
                </tr>
                <tr>
                    <td>workingDir</td>
                </tr>
                <tr>
                    <td>executable</td>
                </tr>
                <tr>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  10. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGParallelSuiteIntegrationTest.groovy

                apply plugin: 'java'
                ${mavenCentralRepository()}
                dependencies {
                    testImplementation 'org.testng:testng:$version'
                }
                test {
                  useTestNG {
                    suites "suite.xml"
                  }
                }
            """
        }
    
        def createTests(int testCount, int threadCount) {
            String suiteXml = ""
            testCount.times { x ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 3K bytes
    - Viewed (0)
Back to top