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.

includePackage

abstract fun includePackage(pkg: String): TestSpec(source)

Adds all tests declared in the target package to the test execution.

The effect is recursive, meaning that the tests defined in sub-packages will also be executed.

Return

this

Since

7.6

Parameters

pkg

The target package.