api / org.gradle.api.tasks.testing / TestFilter / includeTestsMatching

includeTestsMatching

abstract fun includeTestsMatching(testNamePattern: String): TestFilter

Appends a test name pattern to the filter. Wildcard '*' is supported, either test method name or class name is supported. Examples of test names: "com.foo.FooTest.someMethod", "com.foo.FooTest", "*FooTest*", "com.foo*". See examples in the docs for TestFilter.

Parameters

testNamePattern - test name pattern to include, can be class or method name, can contain wildcard '*'

Return
this filter object