Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for withTaskAndTestClasses (0.35 sec)

  1. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r70/TestDisplayNameJUnit5CrossVersionSpec.groovy

    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") {
                    suite("Gradle Test Run :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)
  2. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r68/CompositeBuildTaskExecutionCrossVersionSpec.groovy

            """
    
            when:
            withConnection { connection ->
                def testLauncher = connection.newTestLauncher()
                collectOutputs(testLauncher)
                testLauncher.withTaskAndTestClasses(":other-build:sub:test", ["MyIncludedTest"]).run()
            }
    
            then:
            outputContains("BUILD SUCCESSFUL")
        }
    
        private void executeTaskViaTAPI(String... tasks) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 15.5K bytes
    - Viewed (0)
Back to top