api / org.gradle.api.tasks.testing / Test / useJUnitPlatform

useJUnitPlatform

@Incubating open fun useJUnitPlatform(): Unit

Specifies that JUnit Platform (a.k.a. JUnit 5) should be used to execute the tests.

To configure JUnit platform specific options, see #useJUnitPlatform(Action).

Since
4.6

@Incubating open fun useJUnitPlatform(testFrameworkConfigure: Action<in JUnitPlatformOptions>): Unit

Specifies that JUnit Platform (a.k.a. JUnit 5) should be used to execute the tests, configuring JUnit platform specific options.

The supplied action configures an instance of , which can be used to configure how JUnit platform runs.

Parameters

testFrameworkConfigure - An action used to configure the JUnit platform options.

Since
4.6