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.

useJUnit

open fun useJUnit()(source)

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

Since

0.7

See also

Configure JUnit4 specific options.


open fun useJUnit(@Nullable @DelegatesTo(value = JUnitOptions::class) testFrameworkConfigure: @Nullable Closure)(source)

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

The supplied action configures an instance of JUnit4 specific options.

Since

0.7

Parameters

testFrameworkConfigure

A closure used to configure JUnit4 options.


open fun useJUnit(testFrameworkConfigure: Action<in JUnitOptions>)(source)

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

The supplied action configures an instance of JUnit4 specific options.

Since

3.5

Parameters

testFrameworkConfigure

An action used to configure JUnit4 options.