Add test tag and task for KGP MPP tests.
^KT-45749 In Progress
This commit is contained in:
@@ -246,9 +246,21 @@ val otherPluginsTestTask = tasks.register<Test>("kgpOtherTests") {
|
|||||||
if (isTeamcityBuild) finalizedBy(cleanTestKitCacheTask)
|
if (isTeamcityBuild) finalizedBy(cleanTestKitCacheTask)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
val mppTestsTask = tasks.register<Test>("kgpMppTests") {
|
||||||
|
group = KGP_TEST_TASKS_GROUP
|
||||||
|
description = "Run Multiplatform Kotlin Gradle plugin tests"
|
||||||
|
maxParallelForks = maxParallelTestForks
|
||||||
|
useJUnitPlatform {
|
||||||
|
includeTags("MppKGP")
|
||||||
|
includeEngines("junit-jupiter")
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isTeamcityBuild) finalizedBy(cleanTestKitCacheTask)
|
||||||
|
}
|
||||||
|
|
||||||
tasks.named<Task>("check") {
|
tasks.named<Task>("check") {
|
||||||
dependsOn("testAdvanceGradleVersion")
|
dependsOn("testAdvanceGradleVersion")
|
||||||
dependsOn(simpleTestsTask, jvmTestsTask, jsTestsTask, daemonsTestsTask, otherPluginsTestTask)
|
dependsOn(simpleTestsTask, jvmTestsTask, jsTestsTask, daemonsTestsTask, otherPluginsTestTask, mppTestsTask)
|
||||||
if (isTeamcityBuild) {
|
if (isTeamcityBuild) {
|
||||||
dependsOn("testAdvanceGradleVersionMppAndAndroid")
|
dependsOn("testAdvanceGradleVersionMppAndAndroid")
|
||||||
dependsOn("testMppAndAndroid")
|
dependsOn("testMppAndAndroid")
|
||||||
@@ -301,7 +313,8 @@ tasks.withType<Test> {
|
|||||||
jvmTestsTask.name,
|
jvmTestsTask.name,
|
||||||
jsTestsTask.name,
|
jsTestsTask.name,
|
||||||
daemonsTestsTask.name,
|
daemonsTestsTask.name,
|
||||||
otherPluginsTestTask.name
|
otherPluginsTestTask.name,
|
||||||
|
mppTestsTask.name
|
||||||
)
|
)
|
||||||
if (shouldApplyJunitPlatform) {
|
if (shouldApplyJunitPlatform) {
|
||||||
maxHeapSize = "512m"
|
maxHeapSize = "512m"
|
||||||
|
|||||||
+8
@@ -39,6 +39,14 @@ annotation class JvmGradlePluginTests
|
|||||||
@Tag("JsKGP")
|
@Tag("JsKGP")
|
||||||
annotation class JsGradlePluginTests
|
annotation class JsGradlePluginTests
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add it to tests covering Kotlin Multiplatform Gradle plugin.
|
||||||
|
*/
|
||||||
|
@Target(AnnotationTarget.CLASS, AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.FUNCTION)
|
||||||
|
@Retention(AnnotationRetention.RUNTIME)
|
||||||
|
@Tag("MppKGP")
|
||||||
|
annotation class MppGradlePluginTests
|
||||||
|
|
||||||
@Target(AnnotationTarget.CLASS, AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.FUNCTION)
|
@Target(AnnotationTarget.CLASS, AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.FUNCTION)
|
||||||
@Retention(AnnotationRetention.RUNTIME)
|
@Retention(AnnotationRetention.RUNTIME)
|
||||||
@Tag("OtherKGP")
|
@Tag("OtherKGP")
|
||||||
|
|||||||
Reference in New Issue
Block a user