testing { suites { val test by getting(JvmTestSuite::class) { useJUnitJupiter() } @Suppress("UNUSED_VARIABLE") // Gradle determines name of test suite by the name of the variable val integrationTest by registering(JvmTestSuite::class) { testType.set(TestSuiteType.INTEGRATION_TEST) useJUnitJupiter() // dependencies omitted for brevity (main source set not included) targets { all { testTask.configure { shouldRunAfter(test) } } } } } }