gradle
8.5

# useJUnitPlatform

open fun useJUnitPlatform()(source)

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

Use this option if your tests use JUnit Jupiter/JUnit5.

JUnit Platform supports multiple test engines, which allows other testing frameworks to be built on top of it. You may need to use this option even if you are not using JUnit directly.

#### See also

useJUnitPlatform(org.gradle.api.Action)

Configure JUnit Platform specific options.

open fun useJUnitPlatform(testFrameworkConfigure: Action<out Any>)(source)

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

Use this option if your tests use JUnit Jupiter/JUnit5.

JUnit Platform supports multiple test engines, which allows other testing frameworks to be built on top of it. You may need to use this option even if you are not using JUnit directly.

The supplied action configures an instance of JUnit Platform specific options.

#### Parameters

testFrameworkConfigure

A closure used to configure JUnit platform options.