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.

includeClass

abstract fun includeClass(cls: String): TestSpec(source)

Adds the target test class to the test execution.

The target class should be selected with its fully-qualified name.

Return

this

Since

7.6

Parameters

cls

The fully-qualified name of the target class.