gradle
8.2

# useJUnit

open fun useJUnit()

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

#### See also

useJUnit(org.gradle.api.Action)

Configure JUnit4 specific options.

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

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.

#### Parameters

testFrameworkConfigure

A closure used to configure JUnit4 options.

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

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.

#### Parameters

testFrameworkConfigure

An action used to configure JUnit4 options.