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.

includePattern

abstract fun includePattern(pattern: String): TestSpec(source)

Adds all tests to the execution that matches the target pattern.

The patterns follow the rules of test filtering.

Return

this

Since

7.6

Parameters

pattern

the pattern to select tests.