Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for launchTests (0.13 sec)

  1. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r61/TestLauncherCrossVersionSpec.groovy

        def "fails with meaningful error when no tests declared"() {
            when:
            launchTests { TestLauncher launcher ->
                launcher.withTaskAndTestClasses(':test',[])
            }
    
            then:
            def e = thrown(TestExecutionException)
            e.message == 'No test for task :test declared for execution.'
    
            when:
            launchTests { TestLauncher launcher ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r82/TestLauncherTestSpecCrossVersionSpec.groovy

        @Issue("https://github.com/gradle/gradle/pull/25229")
        def "TestLauncher configuration ignored when configuration cache entry is reused in older Gradle versions"() {
            when:
            launchTests { TestLauncher launcher ->
                launcher.withArguments("--configuration-cache")
                launcher.withTestsFor { TestSpecs specs ->
                    specs.forTaskPath(':secondTest').includePackage('example2')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  6. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r68/CompositeBuildTestLauncherCrossVersionSpec.groovy

            when:
            launchTests { TestLauncher launcher ->
                launcher.withTaskAndTestClasses(':included-build:test', [])
            }
    
            then:
            def e = thrown(TestExecutionException)
            e.message == 'No test for task :included-build:test declared for execution.'
    
            when:
            launchTests { TestLauncher launcher ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r83/TestLauncherCustomTestTaskCrossVersionTest.groovy

        }
    
        @Issue('https://github.com/gradle/gradle/issues/25370')
        @TargetGradleVersion(">=7.6 <8.3")
        def "Cannot run tests with custom task implementation in older Gradle versions"() {
            when:
            launchTests { TestLauncher launcher ->
                launcher.withTestsFor { TestSpecs specs ->
                    specs.forTaskPath(':myTestTask').includeClass('org.my.MyClass')
                }
            }
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r88/TestDisplayNameSpockCrossVersionSpec.groovy

    import spock.lang.Specification
    
    class SimpleTests extends Specification {
    
        def "success test"() {
            expect:
            true
        }
    }
    
    """
            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
    - 4.3K bytes
    - Viewed (0)
Back to top