- Sort Score
- Result 10 results
- Languages All
Results 11 - 18 of 18 for newTestLauncher (0.33 sec)
-
platforms/ide/tooling-api/src/main/java/org/gradle/tooling/TestSpec.java
/** * Provides infrastructure to select which test classes, methods, and packages will be included in the test execution. * <p> * A complex example: * <pre> * TestLauncher testLauncher = projectConnection.newTestLauncher(); * testLauncher.withTestsFor(specs -> { * specs.forTaskPath(":test") // configure the test selection on the ':test' task
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 4.5K bytes - Viewed (0) -
platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r68/CompositeBuildTaskExecutionCrossVersionSpec.groovy
} TestOperationDescriptor descriptor = collector.descriptors.find { it.name == "myTestMethod" } when: withConnection { connection -> TestLauncher launcher = connection.newTestLauncher().withTests(descriptor) collectOutputs(launcher) launcher.run() } then: outputContains("BUILD SUCCESSFUL") }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 16 10:10:39 UTC 2024 - 15.5K bytes - Viewed (0) -
platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r84/TestLauncherCompositeBuildCrossVersionTest.groovy
def stdout = new ByteArrayOutputStream() def tee = new TeeOutputStream(System.out, stdout) switch (api) { case LauncherApi.TEST_LAUNCHER: connection.newTestLauncher() .withTaskAndTestClasses(task, asList(testClass)) .setStandardOutput(tee) .run() break
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 9.7K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/fixtures/ToolingApiSpec.groovy
def output = new ByteArrayOutputStream() def error = new ByteArrayOutputStream() def args = executer.allArgs args.remove("--no-daemon") connection.newTestLauncher() .withJvmTestClasses(testClasses) .addJvmArguments(executer.jvmArgs) .withArguments(args) .setStandardOutput(new TeeOutputStream(output, System.out))
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 15.1K bytes - Viewed (0) -
platforms/ide/tooling-api/src/main/java/org/gradle/tooling/TestLauncher.java
* Clients can target tests via the {@code TestSpec} interface, which can configure the target test tasks as well as what tests should be executed * <pre> * TestLauncher testLauncher = projectConnection.newTestLauncher(); * testLauncher.withTestsFor(spec -> { * spec.forTaskPath(":test") * .includePackage("org.pkg") * .includeClass("com.TestClass")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 8.6K bytes - Viewed (0) -
platforms/ide/tooling-api/src/main/java/org/gradle/tooling/ProjectConnection.java
/** * Creates a test launcher which can be used to execute tests. * * <p>Requires Gradle 3.0 or later.</p> * * @return The launcher. * @since 2.6 */ TestLauncher newTestLauncher(); /** * Creates a builder which can be used to query the model of the given type. *
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 8.5K bytes - Viewed (0) -
platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/TestLauncherSpec.groovy
} } void launchTests(ProjectConnection connection, ResultHandler<Void> resultHandler, CancellationToken cancellationToken, Closure configurationClosure) { TestLauncher testLauncher = connection.newTestLauncher() .withCancellationToken(cancellationToken) .addProgressListener(events, OperationType.TASK, OperationType.TEST) collectOutputs(testLauncher)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Apr 26 08:42:44 UTC 2024 - 19.9K bytes - Viewed (0) -
platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r26/TestLauncherCrossVersionSpec.groovy
def failingProgressListener = failingProgressListener() when: withConnection { ProjectConnection connection -> def testLauncher = connection.newTestLauncher() testLauncher.addProgressListener(failingProgressListener) testLauncher.withTests(descriptors.toArray(new TestOperationDescriptor[descriptors.size()])) testLauncher.run() };
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Mar 06 06:59:43 UTC 2024 - 22.6K bytes - Viewed (0)