# 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.

#### Since

4.6

#### See also

useJUnitPlatform(org.gradle.api.Action)

Configure JUnit Platform specific options.

open fun useJUnitPlatform(testFrameworkConfigure: Action<in JUnitPlatformOptions>)(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.

#### Since

4.6

#### Parameters

testFrameworkConfigure

A closure used to configure JUnit platform options.