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.

includeMethod

abstract fun includeMethod(cls: String, method: String): TestSpec(source)

Adds the target test method to the test execution.

The target method should be selected with its fully-qualified class name and with the name of the method.

Return

this

Since

7.6

Parameters

cls

The fully-qualified name of the class containing the method.

method

The name of the target method.