Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for includeMethods (0.18 sec)

  1. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/consumer/DefaultTestSpec.java

            this.classes.addAll(classes);
            return this;
        }
    
        @Override
        public TestSpec includeMethod(String cls, String method) {
            return includeMethods(cls, Collections.singletonList(method));
        }
    
        @Override
        public TestSpec includeMethods(String clazz, Collection<String> newMethods) {
            List<String> methods = this.methods.get(clazz);
            if (methods == null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/TestSpec.java

         * @return this
         */
        TestSpec includeMethod(String cls, String method);
    
        /**
         * Adds the target test methods to the test execution.
         *
         * @see #includeMethod(String, String)
         * @param cls The fully-qualified name of the class containing the method.
         * @param methods The name of the target methods.
         * @return this
         */
        TestSpec includeMethods(String cls, Collection<String> methods);
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r76/TestLauncherTestSpecCrossVersionSpec.groovy

        }
    
        def "can select test methods"() {
            when:
            launchTests { TestLauncher launcher ->
                launcher.withTestsFor { TestSpecs specs ->
                    specs.forTaskPath(':secondTest').includeMethod('example.MyTest', 'foo')
                }
            }
    
            then:
            events.testClassesAndMethods.size() == 2
            assertTestExecuted(className: 'example.MyTest', methodName: 'foo', task: ':secondTest')
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 12.2K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r76/TestLauncherTaskExecutionCrossVersionSpec.groovy

                collectOutputs(testLauncher)
    
                testLauncher.forTasks("setupTest")
                            .withTestsFor(s -> s.forTaskPath(":test")
                            .includeMethod('MyTest', 'pass'))
                            .forTasks("cleanupTest")
                            .run()
            }
    
            then:
            tasksExecutedInOrder(':setupTest', ':test', ':cleanupTest')
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r82/TestLauncherTestSpecCrossVersionSpec.groovy

            when:
            launchTests { TestLauncher launcher ->
                launcher.withArguments("--configuration-cache")
                launcher.withTestsFor { TestSpecs specs ->
                    specs.forTaskPath(':test').includeMethod('example.MyTest' , 'foo')
                }
            }
    
            then:
            events.testClassesAndMethods.size() == 2
            assertTestExecuted(className: 'example.MyTest', methodName: 'foo', task: ':test')
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  6. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/TestLauncher.java

         *     testLauncher.withTestsFor(spec -&gt; {
         *         spec.forTaskPath(":test")
         *             .includePackage("org.pkg")
         *             .includeClass("com.TestClass")
         *             .includeMethod("com.TestClass")
         *             .includePattern("io.*")
         *     }).run();
         * </pre>
         *
         * <p>
         * Note: These tests are ignored for target Gradle version earlier than 7.6.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 8.6K bytes
    - Viewed (0)
Back to top