|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
@Incubating public interface TestFilter
Allows filtering tests for execution. Some examples:
apply plugin: 'java' test { filter { //specific test method includeTestsMatching "org.gradle.SomeTest.someSpecificFeature" //specific test method, use wildcard for packages includeTestsMatching "*SomeTest.someSpecificFeature" //specific test class includeTestsMatching "org.gradle.SomeTest" //specific test class, wildcard for packages includeTestsMatching "*.SomeTest" //all classes in package, recursively includeTestsMatching "com.gradle.tooling.*" //all integration tests, by naming convention includeTestsMatching "*IntegTest" //only ui tests from integration tests, by some naming convention includeTestsMatching "*IntegTest*ui" } }
Method Summary | |
---|---|
Set
|
getIncludePatterns()
Returns the included test name patterns. |
TestFilter
|
includeTestsMatching(String testNamePattern)
Appends a test name pattern to the filter. |
TestFilter
|
setIncludePatterns(String... testNamePatterns)
Sets the test name patterns to be included in the filter. |
Method Detail |
---|
public Set getIncludePatterns()
public TestFilter includeTestsMatching(String testNamePattern)
testNamePattern
- test name pattern to include, can be class or method name, can contain wildcard '*'
public TestFilter setIncludePatterns(String... testNamePatterns)
testNamePatterns
- class or method name patterns to set, may contain wildcard '*'
Gradle API 1.11