Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for matchesTest (0.17 sec)

  1. platforms/software/testing-base-infrastructure/src/test/groovy/org/gradle/api/internal/tasks/testing/filter/TestSelectionMatcherTest.groovy

    import spock.lang.Specification
    
    class TestSelectionMatcherTest extends Specification {
    
        def "knows if test matches class"() {
            expect:
            matcher(input, [], []).matchesTest(className, methodName) == match
            matcher([], [], input).matchesTest(className, methodName) == match
    
            where:
            input                    | className                 | methodName            | match
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 13 20:33:30 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  2. platforms/jvm/testing-junit-platform/src/main/java/org/gradle/api/internal/tasks/testing/junitplatform/JUnitPlatformTestClassProcessor.java

                        }
                    }
                }
                if (children.isEmpty()) {
                    String className = classSource.getClassName();
                    return matcher.matchesTest(className, null)
                        || matcher.matchesTest(className, descriptor.getLegacyReportingName());
                }
                return true;
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 15:59:04 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  3. platforms/jvm/testing-jvm-infrastructure/src/main/java/org/gradle/api/internal/tasks/testing/junit/JUnitTestClassExecutor.java

                // matches the filter, run the entire suite instead of filtering away its contents.
                if (!runner.getDescription().isSuite() || !matcher.matchesTest(testClassName, null)) {
                    filters.add(new MethodNameFilter(matcher));
                }
            }
    
            if (runner instanceof Filterable) {
                Filterable filterable = (Filterable) runner;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  4. platforms/jvm/testing-jvm-infrastructure/src/main/java/org/gradle/api/internal/tasks/testing/testng/TestNGTestClassProcessor.java

                List<IMethodInstance> filtered = new LinkedList<IMethodInstance>();
                for (IMethodInstance candidate : methods) {
                    if (matcher.matchesTest(candidate.getMethod().getTestClass().getName(), candidate.getMethod().getMethodName())
                        || matcher.matchesTest(suite.getName(), null)) {
                        filtered.add(candidate);
                    }
                }
                return filtered;
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 21:25:59 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  5. platforms/software/testing-base-infrastructure/src/main/java/org/gradle/api/internal/tasks/testing/filter/TestSelectionMatcher.java

            for (String includedTest : includedTests) {
                includePatterns.add(new TestPattern(includedTest));
            }
            return includePatterns;
        }
    
        public boolean matchesTest(String className, String methodName) {
            return matchesPattern(buildScriptIncludePatterns, className, methodName)
                && matchesPattern(commandLineIncludePatterns, className, methodName)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 13 20:33:30 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  6. subprojects/core/src/test/groovy/org/gradle/util/MatchersTest.groovy

     * limitations under the License.
     */
    
    package org.gradle.util
    
    import spock.lang.Specification
    
    import java.util.regex.Pattern
    
    import static org.gradle.util.Matchers.matchesRegexp
    
    class MatchersTest extends Specification {
    
        def "matches regex"() {
            expect:
            matchesRegexp("foo.*").matches(match)
    
            and:
            !matchesRegexp(Pattern.compile("foo.*")).matches(noMatch)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jul 22 14:16:41 UTC 2013
    - 1.1K bytes
    - Viewed (0)
Back to top