For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

excludeTestsMatching

abstract fun excludeTestsMatching(testNamePattern: String): TestFilter(source)

Appends a test name pattern to the exclusion 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*", "*someTestMethod". See examples in the docs for TestFilter.

Return

this filter object

Since

5.0

Parameters

testNamePattern

test name pattern to exclude, can be class or method name, can contain wildcard '*'