Add 'kgpOtherTests' task.
This will run tests for all support plugins, such kapt, allopen, etc... ^KT-45745 In Progress
This commit is contained in:
@@ -11,6 +11,7 @@ More fine-grained test tasks exist covering different parts of Gradle plugins:
|
||||
- `kgpJvmTests` - runs all tests for Kotlin Gradle Plugin/Jvm platform (parallel execution)
|
||||
- `kgpJsTests` - runs all tests for Kotlin Gradle Plugin/Js platform (parallel execution)
|
||||
- `kgpDaemonTests` - runs all tests for Gradle and Kotlin daemons (sequential execution)
|
||||
- `kgpOtherTests` - run all tests for support Gradle plugins, such as kapt, allopen, etc (parallel execution)
|
||||
- `kgpAllParallelTests` - run all tests for all platforms except daemons tests (parallel execution)
|
||||
|
||||
Also, few deprecated tasks still exist until all tests will be migrated to the new setup:
|
||||
|
||||
@@ -223,9 +223,19 @@ val daemonsTestsTask = tasks.register<Test>("kgpDaemonTests") {
|
||||
}
|
||||
}
|
||||
|
||||
val otherPluginsTestTask = tasks.register<Test>("kgpOtherTests") {
|
||||
group = KGP_TEST_TASKS_GROUP
|
||||
description = "Run tests for all support plugins, such as kapt, allopen, etc"
|
||||
maxParallelForks = maxParallelTestForks
|
||||
useJUnitPlatform {
|
||||
includeTags("OtherKGP")
|
||||
includeEngines("junit-jupiter")
|
||||
}
|
||||
}
|
||||
|
||||
tasks.named<Task>("check") {
|
||||
dependsOn("testAdvanceGradleVersion")
|
||||
dependsOn(simpleTestsTask, jvmTestsTask, jsTestsTask, daemonsTestsTask)
|
||||
dependsOn(simpleTestsTask, jvmTestsTask, jsTestsTask, daemonsTestsTask, otherPluginsTestTask)
|
||||
if (isTeamcityBuild) {
|
||||
dependsOn("testAdvanceGradleVersionMppAndAndroid")
|
||||
dependsOn("testMppAndAndroid")
|
||||
@@ -274,7 +284,8 @@ tasks.withType<Test> {
|
||||
simpleTestsTask.name,
|
||||
jvmTestsTask.name,
|
||||
jsTestsTask.name,
|
||||
daemonsTestsTask.name
|
||||
daemonsTestsTask.name,
|
||||
otherPluginsTestTask.name
|
||||
)
|
||||
if (shouldApplyJunitPlatform) {
|
||||
maxHeapSize = "512m"
|
||||
|
||||
+6
-1
@@ -37,4 +37,9 @@ annotation class JvmGradlePluginTests
|
||||
@Target(AnnotationTarget.CLASS, AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.FUNCTION)
|
||||
@Retention(AnnotationRetention.RUNTIME)
|
||||
@Tag("JsKGP")
|
||||
annotation class JsGradlePluginTests
|
||||
annotation class JsGradlePluginTests
|
||||
|
||||
@Target(AnnotationTarget.CLASS, AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.FUNCTION)
|
||||
@Retention(AnnotationRetention.RUNTIME)
|
||||
@Tag("OtherKGP")
|
||||
annotation class OtherGradlePluginTests
|
||||
|
||||
Reference in New Issue
Block a user