Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for withJvmTestClasses (0.26 sec)

  1. platforms/ide/tooling-api/src/test/groovy/org/gradle/tooling/internal/consumer/DefaultTestLauncherTest.groovy

        def launcher = new DefaultTestLauncher(executor, Stub(ConnectionParameters))
    
        def "adding tests does not affect an operation in progress"() {
            given:
            launcher.withJvmTestClasses("test")
            when:
            launcher.run()
    
            then:
            1 * executor.run(_, _) >> { ConsumerAction action, ResultHandlerVersion1 handler ->
                action.run(connection)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 5.4K 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)
        }
    
        def "can launch tests in debug mode"() {
    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/r26/TestLauncherCrossVersionSpec.groovy

            setup: "add testcase that should not be executed"
            withFailingTest()
    
            when:
            launchTests { TestLauncher testLauncher ->
                testLauncher.withJvmTestClasses("example.MyTest")
                testLauncher.withJvmTestClasses("example2.MyOtherTest")
            }
            then:
            assertTaskExecuted(":test")
            assertTaskExecuted(":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/main/java/org/gradle/tooling/internal/consumer/DefaultTestLauncher.java

            return this;
        }
    
        @Override
        public TestLauncher withJvmTestClasses(String... classNames) {
            withJvmTestClasses(Arrays.asList(classNames));
            return this;
        }
    
        @Override
        public TestLauncher withJvmTestClasses(Iterable<String> testClasses) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 12:11:05 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r27/TestLauncherCrossVersionSpec.groovy

        }
    
        def "executes all test methods if class and method is declared"() {
            when:
            launchTests { TestLauncher launcher ->
                launcher.withJvmTestClasses("example.MyTest")
                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)
  6. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r26/TestLauncherCancellationCrossVersionSpec.groovy

            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)
                cancel.cancel()
                sync.releaseAll()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/TestLauncher.java

         */
        TestLauncher withJvmTestClasses(String... testClasses);
    
    
        /**
         * <p>Adds tests to be executed declared by class name.</p>
         *
         * <p>This method ignores tests defined in included builds.</p>
         *
         * @param testClasses The class names of the tests to be executed.
         * @return this
         * @since 2.6
         */
        TestLauncher withJvmTestClasses(Iterable<String> testClasses);
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 8.6K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/ToolingApiUnsupportedBuildJvmCrossVersionSpec.groovy

            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)
Back to top