gradle
8.2

# useTestNG

open fun useTestNG()

Specifies that TestNG should be used to discover and execute the tests.

#### See also

useTestNG(org.gradle.api.Action)

Configure TestNG specific options.

open fun useTestNG(@DelegatesTo(value = TestNGOptions::class) testFrameworkConfigure: Closure)

Specifies that TestNG should be used to discover and execute the tests with additional configuration.

The supplied action configures an instance of TestNG specific options.

#### Parameters

testFrameworkConfigure

A closure used to configure TestNG options.

open fun useTestNG(testFrameworkConfigure: Action<out Any>)

Specifies that TestNG should be used to discover and execute the tests with additional configuration.

The supplied action configures an instance of TestNG specific options.

#### Parameters

testFrameworkConfigure

An action used to configure TestNG options.