setupTesting

fun Project.setupTesting(junitBomConfig: DependencyConfig, block: Test.() -> Unit = {}): TaskProvider<Test>

Sets up the project for testing with JUnit

  1. Adds the JUnit Jupiter and JUnit Platform dependencies

  2. Configures the test task to use JUnit Platform

Return

The test task that was configured

Parameters

junitBomConfig

The configuration for the JUnit BOM dependency

configuration

The configuration for the test task