Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 63 for useTestNG (0.14 sec)

  1. platforms/jvm/plugins-java/src/integTest/groovy/org/gradle/java/JavaCrossCompilationIntegrationTest.groovy

            given:
            withJavaProjectUsingToolchainsForJavaVersion(version)
            buildFile << """
                testing.suites.test {
                    useTestNG('6.8.8')
                }
            """
    
            file("src/test/java/ThingTest.java") << """
                import org.testng.annotations.Test;
    
                public class ThingTest {
                    @Test
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 05:59:30 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  2. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/AbstractIncrementalTestIntegrationTest.groovy

            def result = new JUnitXmlTestExecutionResult(testDirectory)
            result.assertTestClassesExecuted('JUnitTest')
    
            when:
            // Switch test framework
            file('build.gradle').append 'test.useTestNG()\n'
    
            then:
            succeeds('test').assertTasksNotSkipped(':test')
    
            result.assertTestClassesExecuted('TestNGTest') //previous result still present in the dir
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  3. platforms/jvm/language-java/src/integTest/groovy/org/gradle/java/compile/jpms/test/JavaModuleBackboxTestExcutionIntegrationTest.groovy

            then:
            succeeds ':test'
        }
    
    
        def "runs TestNG blackbox test as module using the module path"() {
            given:
            buildFile << """
                test { useTestNG() }
                dependencies {
                    testImplementation 'org.testng:testng:7.1.0'
                }
            """
    
            when:
            consumingModuleInfo('exports consumer')
            consumingModuleClass()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  4. platforms/jvm/testing-jvm/src/main/java/org/gradle/api/tasks/testing/testng/TestNGOptions.java

         *
         * Configuring extra listener:
         * <pre class='autoTested'>
         * plugins {
         *     id 'java'
         * }
         *
         * test {
         *     useTestNG() {
         *         // creates emailable HTML file
         *         // this reporter typically ships with TestNG library
         *         listeners &lt;&lt; 'org.testng.reporters.EmailableReporter'
         *     }
         * }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 22:42:49 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  5. platforms/software/build-init/src/test/groovy/org/gradle/buildinit/plugins/internal/BuildScriptBuilderKotlinTest.groovy

                    b.propertyAssignment("Define the application name", "applicationName", "My Application", true)
                }
                .taskMethodInvocation("Use TestNG", "test", "Test", "useTestNG")
                .propertyAssignment(null, "cathedral", 42)
                .methodInvocation(null, "cathedral")
                .taskPropertyAssignment("Disable tests", "test", "Test", "enabled", false)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 18 14:16:33 UTC 2023
    - 16.1K bytes
    - Viewed (0)
  6. platforms/jvm/plugins-jvm-test-suite/src/integTest/groovy/org/gradle/testing/testsuites/TestSuitesIntegrationTest.groovy

            'useKotlinTest("1.5.30")'    | JUnitPlatformTestFramework | "kotlin-test-junit5-1.5.30.jar"
            'useTestNG()'                | TestNGTestFramework        | "testng-${TestNGTestToolchain.DEFAULT_VERSION}.jar"
            'useTestNG("7.3.0")'         | TestNGTestFramework        | "testng-7.3.0.jar"
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Sep 13 20:36:32 UTC 2023
    - 35.8K bytes
    - Viewed (0)
  7. platforms/software/build-init/src/test/groovy/org/gradle/buildinit/plugins/internal/BuildScriptBuilderGroovyTest.groovy

                    b.propertyAssignment("Define the application name", "applicationName", "My Application", true)
                }
                .taskMethodInvocation("Use TestNG", "test", "Test", "useTestNG")
                .propertyAssignment(null, "cathedral", 42)
                .methodInvocation(null, "cathedral")
                .taskPropertyAssignment("Disable tests", "test", "Test", "enabled", false)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 18 14:16:33 UTC 2023
    - 16.2K bytes
    - Viewed (0)
  8. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/TestOptionsIntegrationSpec.groovy

            given:
            buildFile << """
            testing {
               suites {
                   test {
                       useTestNG()
                       targets.all {
                           testTask.configure {
                               useJUnitPlatform()
                            }
                       }
                   }
               }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  9. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r76/TestFailureProgressEventCrossVersionTest.groovy

                apply plugin: 'java'
                ${RepoScriptBlockUtil.mavenCentralRepository()}
                testing {
                    suites {
                        test {
                            useTestNG('7.4.0')
                        }
                    }
                }
            """
    
            file('src/test/java/AppException.java') << 'public class AppException extends Exception {}'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 22.1K bytes
    - Viewed (0)
  10. platforms/software/build-init/src/main/java/org/gradleinternal/buildinit/plugins/internal/maven/Maven2Gradle.java

            );
            if (testng) {
                builder.taskMethodInvocation(null, "test", "Test", "useTestNG");
            }
        }
    
        private Set<MavenProject> modules(Set<MavenProject> projects, boolean incReactors) {
            return projects.stream().filter(project -> {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 14 15:23:34 UTC 2024
    - 27.8K bytes
    - Viewed (0)
Back to top