Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for newTestLauncher (0.21 sec)

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

                tasks.register('cleanupTest')
            '''
    
            when:
            withConnection { ProjectConnection connection ->
                TestLauncher testLauncher = connection.newTestLauncher()
                collectOutputs(testLauncher)
    
                testLauncher.forTasks("setupTest")
                            .withTestsFor(s -> s.forTaskPath(":test")
                            .includeMethod('MyTest', 'pass'))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r56/TestLauncherDebugTestsCrossVersionTest.groovy

            setup:
            // port is assigned but not connected
            def port = jdwpClient.port
    
            when:
            withConnection { connection ->
                connection.newTestLauncher()
                    .withJvmTestClasses("example.MyTest")
                    .debugTestsOn(port)
                    .run()
            }
    
            then:
            thrown(BuildException)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r82/TestLauncherTaskExecutionCrossVersionSpec.groovy

                    doLast {
                        System.out.println 'foo'
                    }
                }
            """
    
            when:
            withConnection {
                TestLauncher testLauncher = newTestLauncher()
                testLauncher.forTasks(':foo').run()
            }
    
            then:
            result.assertTaskExecuted(':foo')
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api/src/testFixtures/groovy/org/gradle/integtests/tooling/fixture/ToolingApiConnection.groovy

        }
    
        BuildLauncher newBuild() {
            new ToolingApiBuildLauncher(projectConnection.newBuild(), stdout, stderr)
        }
    
        TestLauncher newTestLauncher() {
            new ToolingApiTestLauncher(projectConnection.newTestLauncher(), stdout, stderr)
        }
    
        <T> ModelBuilder<T> model(Class<T> modelType) {
            new ToolingApiModelBuilder(projectConnection.model(modelType), stdout, stderr)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r26/TestLauncherCancellationCrossVersionSpec.groovy

            def sync = server.expectAndBlock("registered")
            def resultHandler = new TestResultHandler()
    
            when:
            withConnection { ProjectConnection connection ->
                def build = connection.newTestLauncher()
                build.withJvmTestClasses("Broken")
                build.withCancellationToken(cancel.token())
                build.run(resultHandler)
                sync.waitForAllPendingCalls(resultHandler)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  6. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r43/ToolingApiVersionSpecification.groovy

    public class TestClientTest{
        @org.junit.Test public void test(){
        }
    }'''
            withConnection { ProjectConnection connection ->
                def launcher = connection.newTestLauncher().withJvmTestClasses("TestClientTest")
                launcher.standardOutput = outputStream
                launcher.run()
            }
        }
    
        // since 6.1
        def notifyDaemonsAboutChangedPaths() {
            build()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/consumer/DefaultProjectConnection.java

        }
    
        @Override
        public BuildLauncher newBuild() {
            return new DefaultBuildLauncher(connection, parameters);
        }
    
        @Override
        public TestLauncher newTestLauncher() {
            return new DefaultTestLauncher(connection, parameters);
        }
    
        @Override
        public <T> ModelBuilder<T> model(Class<T> modelType) {
            if (!modelType.isInterface()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 12:11:05 UTC 2024
    - 5K bytes
    - Viewed (0)
  8. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r85/TestLauncherDebugCrossVersionTest.groovy

        private String runTaskAndTestClassUsing(boolean debugMode) {
            def stdout = new ByteArrayOutputStream()
            withConnection { ProjectConnection connection ->
                def testLauncher = connection.newTestLauncher()
                    .withTaskAndTestClasses(':app:test', Arrays.asList('TestClass1'))
                    .setStandardOutput(stdout)
                if (debugMode) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 29 08:00:25 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  9. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/ToolingApiUnsupportedBuildJvmCrossVersionSpec.groovy

            projectDir.file("gradle.properties").writeProperties("org.gradle.java.home": jdk.javaHome.absolutePath)
    
            when:
            toolingApi.withConnection { ProjectConnection connection ->
                connection.newTestLauncher().withJvmTestClasses("SomeTest").run()
            }
    
            then:
            GradleConnectionException e = thrown()
            e.message.startsWith("Could not execute tests using ")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  10. platforms/ide/tooling-api/src/integTest/groovy/org/gradle/integtests/tooling/ToolingApiUnsupportedVersionIntegrationTest.groovy

        }
    
        def "tooling api reports an error when running tests using a gradle version does not implement the tooling api"() {
            when:
            toolingApi.withConnection { ProjectConnection connection -> connection.newTestLauncher().withJvmTestClasses("class").run() }
    
            then:
            UnsupportedVersionException e = thrown()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 3.6K bytes
    - Viewed (0)
Back to top