Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for launchTests (0.14 sec)

  1. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r76/TestLauncherTestSpecCrossVersionSpec.groovy

            withFailingTest() // ensures that withTestsFor statements are not ignored
        }
    
        @TargetGradleVersion('>=3.0 <7.6')
        def "older Gradle versions ignore withTestsFor calls"() {
            when:
            launchTests { TestLauncher launcher ->
                launcher.withTestsFor { TestSpecs specs ->
                    specs.forTaskPath(':secondTest').includeClass('example.MyTest')
                }
            }
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 12.2K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r26/TestLauncherCrossVersionSpec.groovy

        }
    
        def "tests can be executed multiple times without task being up-to-date"() {
            given:
            collectDescriptorsFromBuild()
            and:
            launchTests(testDescriptors("example.MyTest", null, ":secondTest"))
            when:
            launchTests(testDescriptors("example.MyTest", null, ":secondTest"));
            then:
            assertTaskNotUpToDate(":secondTest")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 06 06:59:43 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r27/TestLauncherCrossVersionSpec.groovy

    @TargetGradleVersion(">=3.0")
    @Timeout(120)
    class TestLauncherCrossVersionSpec extends TestLauncherSpec {
    
        def "can execute test methods of JVM test class"() {
            when:
            launchTests { TestLauncher launcher ->
                launcher.withJvmTestMethods("example.MyTest", "foo")
            }
            then:
    
            assertTestExecuted(className: "example.MyTest", methodName: "foo", task: ":test")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/TestLauncherSpec.groovy

        }
    
        void launchTests(Collection<TestOperationDescriptor> testsToLaunch) {
            launchTests { TestLauncher testLauncher ->
                testLauncher.withTests(testsToLaunch)
            }
        }
    
        void launchTests(Closure configurationClosure) {
            launchTests(null, configurationClosure)
        }
    
        void launchTests(ResultHandler<Void> resultHandler, Closure configurationClosure) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 08:42:44 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r70/TestDisplayNameJUnit5CrossVersionSpec.groovy

    @DisplayName("a class display name")
    public class SimpleTests {
    
        @Test
        @DisplayName("and a test display name")
        void test() {
        }
    }
    """
            when:
            launchTests { TestLauncher launcher ->
                launcher.withTaskAndTestClasses(':test', ['org.example.SimpleTests'])
            }
    
            then:
            jvmTestEvents {
                task(":test") {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 18.3K bytes
    - Viewed (0)
Back to top