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.

useTestNG

abstract fun useTestNG()(source)

Use the TestNG testing framework.

Gradle will provide the version of TestNG to use. Defaults to version 7.11.0

Since

7.3


abstract fun useTestNG(version: String)(source)

Use the TestNG testing framework with a specific version.

Since

7.3

Parameters

version

version of TestNG to use


abstract fun useTestNG(version: Provider<String>)(source)

Use the TestNG testing framework with a specific version.

Since

7.6

Parameters

version

provider supplying the version of TestNG to use