Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for launchTests (0.17 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/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)
  3. 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)
  4. 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)
  5. 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)
  6. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r88/TestDisplayNameJUnit4CrossVersionSpec.groovy

    import org.junit.Test;
    
    public class SimpleTests {
    
        @Test
        public 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: Wed Mar 06 06:59:43 UTC 2024
    - 4.3K bytes
    - Viewed (0)
Back to top