add tests from plugins for kover
diff --git a/build.gradle.kts b/build.gradle.kts
index f66aa47..3b52023 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -957,47 +957,45 @@
checkExpectedGradlePropertyValues()
}
-koverReport {
- // configure default reports - for Kotlin/JVM or Kotlin/MPP projects or merged android variants
- defaults {
- // configure HTML report
- html {
- // custom header in HTML reports, project path by default
- title = "Kotlin Compiler"
-
- // custom charset in HTML report files, used return value of `Charset.defaultCharset()` for Kover or UTF-8 for JaCoCo by default.
- charset = "UTF-8"
-
- // generate a HTML report when running the `check` task
- onCheck = false
-
- filters {
- includes {
- classes("org.jetbrains.kotlin.*")
- }
- }
- }
- }
-}
-
dependencies {
- kover(project("compiler:fir:analysis-tests"))
- kover(project("compiler:fir:checkers"))
- kover(project("compiler:fir:cones"))
- kover(project("compiler:fir:dump"))
- kover(project("compiler:fir:entrypoint"))
- kover(project("compiler:fir:fir2ir"))
- kover(project("compiler:fir:fir-deserialization"))
- kover(project("compiler:fir:fir-serialization"))
- kover(project("compiler:fir:java"))
- kover(project("compiler:fir:plugin-utils"))
- kover(project("compiler:fir:providers"))
- kover(project("compiler:fir:raw-fir"))
- kover(project("compiler:fir:resolve"))
- kover(project("compiler:fir:semantics"))
- kover(project("compiler:fir:tree"))
+ kover(project(":compiler:fir:analysis-tests"))
+ kover(project(":compiler:fir:checkers"))
+ kover(project(":compiler:fir:cones"))
+ kover(project(":compiler:fir:dump"))
+ kover(project(":compiler:fir:entrypoint"))
+ kover(project(":compiler:fir:fir2ir"))
+ kover(project(":compiler:fir:fir-deserialization"))
+ kover(project(":compiler:fir:fir-serialization"))
+ kover(project(":compiler:fir:java"))
+ kover(project(":compiler:fir:plugin-utils"))
+ kover(project(":compiler:fir:providers"))
+ kover(project(":compiler:fir:raw-fir"))
+ kover(project(":compiler:fir:resolve"))
+ kover(project(":compiler:fir:semantics"))
+ kover(project(":compiler:fir:tree"))
+ kover(project(":analysis:analysis-api-fir"))
+ kover(project(":compiler:incremental-compilation-impl"))
+ kover(project(":kotlin-allopen-compiler-plugin"))
+ kover(project(":kotlin-assignment-compiler-plugin"))
+ kover(project(":plugins:fir-plugin-prototype"))
+ kover(project(":kotlinx-serialization-compiler-plugin"))
+ kover(project(":kotlin-noarg-compiler-plugin"))
+ kover(project(":kotlin-sam-with-receiver-compiler-plugin"))
+// kover(project(":native:native.tests"))
}
tasks.withType(org.gradle.api.tasks.testing.Test::class).all {
ignoreFailures = true
+}
+
+koverReport {
+ defaults {
+ html {
+ filters {
+ includes {
+ packages("org.jetbrains.kotlin.fir.*")
+ }
+ }
+ }
+ }
}
\ No newline at end of file
diff --git a/compiler/build.gradle.kts b/compiler/build.gradle.kts
index 663acf2..1c05bc7 100644
--- a/compiler/build.gradle.kts
+++ b/compiler/build.gradle.kts
@@ -67,8 +67,7 @@
systemProperty("kotlin.ant.classpath", antLauncherJarPathProvider.get())
systemProperty("kotlin.ant.launcher.class", "org.apache.tools.ant.Main")
}
- exclude("*")
- setTestNameIncludePatterns(listOf("*Fir*", "*fir*"))
+ setTestNameIncludePatterns(listOf("*Fir*", "Fir*", "*fir*"))
}
val generateTestData by generator("org.jetbrains.kotlin.generators.tests.GenerateCompilerTestDataKt")
diff --git a/compiler/fir/build.gradle.kts b/compiler/fir/build.gradle.kts
index d067f42..4c13b60 100644
--- a/compiler/fir/build.gradle.kts
+++ b/compiler/fir/build.gradle.kts
@@ -29,8 +29,4 @@
}
}
}
-}
-
-projectTest {
- ignoreFailures = true
}
\ No newline at end of file
diff --git a/plugins/allopen/build.gradle.kts b/plugins/allopen/build.gradle.kts
index 0896184..30bb395 100644
--- a/plugins/allopen/build.gradle.kts
+++ b/plugins/allopen/build.gradle.kts
@@ -3,6 +3,7 @@
plugins {
kotlin("jvm")
id("jps-compatible")
+ id("org.jetbrains.kotlinx.kover")
}
dependencies {
@@ -54,4 +55,5 @@
dependsOn(":dist")
workingDir = rootDir
useJUnitPlatform()
+ setTestNameIncludePatterns(listOf("*Fir*", "Fir*", "*fir*"))
}
diff --git a/plugins/assign-plugin/build.gradle.kts b/plugins/assign-plugin/build.gradle.kts
index 78e3b4e..570c140 100644
--- a/plugins/assign-plugin/build.gradle.kts
+++ b/plugins/assign-plugin/build.gradle.kts
@@ -3,6 +3,7 @@
plugins {
kotlin("jvm")
id("jps-compatible")
+ id("org.jetbrains.kotlinx.kover")
}
dependencies {
@@ -51,4 +52,5 @@
dependsOn(":dist")
workingDir = rootDir
useJUnitPlatform()
+ setTestNameIncludePatterns(listOf("*Fir*", "*fir*"))
}
diff --git a/plugins/fir-plugin-prototype/build.gradle.kts b/plugins/fir-plugin-prototype/build.gradle.kts
index 02ee15f..f69a78c 100644
--- a/plugins/fir-plugin-prototype/build.gradle.kts
+++ b/plugins/fir-plugin-prototype/build.gradle.kts
@@ -3,6 +3,7 @@
plugins {
kotlin("jvm")
id("jps-compatible")
+ id("org.jetbrains.kotlinx.kover")
}
dependencies {
@@ -68,6 +69,7 @@
dependsOn(":dist")
workingDir = rootDir
useJUnitPlatform()
+ setTestNameIncludePatterns(listOf("*Fir*", "Fir*", "*fir*"))
}.also { confugureFirPluginAnnotationsDependency(it) }
testsJar()
diff --git a/plugins/kotlinx-serialization/build.gradle.kts b/plugins/kotlinx-serialization/build.gradle.kts
index 1735428..4558271 100644
--- a/plugins/kotlinx-serialization/build.gradle.kts
+++ b/plugins/kotlinx-serialization/build.gradle.kts
@@ -6,6 +6,7 @@
plugins {
kotlin("jvm")
id("jps-compatible")
+ id("org.jetbrains.kotlinx.kover")
}
val jsonJsIrRuntimeForTests: Configuration by configurations.creating {
@@ -107,6 +108,7 @@
workingDir = rootDir
useJUnitPlatform()
setUpJsIrBoxTests()
+ setTestNameIncludePatterns(listOf("*Fir*", "Fir*", "*fir*"))
}
val generateTests by generator("org.jetbrains.kotlinx.serialization.TestGeneratorKt")
diff --git a/plugins/lombok/build.gradle.kts b/plugins/lombok/build.gradle.kts
index 70d7673..b96aacd 100644
--- a/plugins/lombok/build.gradle.kts
+++ b/plugins/lombok/build.gradle.kts
@@ -3,6 +3,7 @@
plugins {
kotlin("jvm")
id("jps-compatible")
+ id("org.jetbrains.kotlinx.kover")
}
dependencies {
@@ -67,6 +68,7 @@
?.let { systemProperty("org.jetbrains.kotlin.test.guava-location", it) }
}
+ setTestNameIncludePatterns(listOf("*Fir*", "Fir*", "*fir*"))
}
publish()
diff --git a/plugins/noarg/build.gradle.kts b/plugins/noarg/build.gradle.kts
index 2c4e781..445d8bd 100644
--- a/plugins/noarg/build.gradle.kts
+++ b/plugins/noarg/build.gradle.kts
@@ -3,6 +3,7 @@
plugins {
kotlin("jvm")
id("jps-compatible")
+ id("org.jetbrains.kotlinx.kover")
}
dependencies {
@@ -51,4 +52,5 @@
projectTest(parallel = true) {
workingDir = rootDir
useJUnitPlatform()
+ setTestNameIncludePatterns(listOf("*Fir*", "Fir*", "*fir*"))
}
diff --git a/plugins/parcelize/parcelize-compiler/build.gradle.kts b/plugins/parcelize/parcelize-compiler/build.gradle.kts
index 896dd7b..77d94b4 100644
--- a/plugins/parcelize/parcelize-compiler/build.gradle.kts
+++ b/plugins/parcelize/parcelize-compiler/build.gradle.kts
@@ -3,6 +3,7 @@
plugins {
kotlin("jvm")
id("jps-compatible")
+ id("org.jetbrains.kotlinx.kover")
}
val robolectricClasspath by configurations.creating
@@ -103,4 +104,5 @@
println(filter.excludePatterns)
println(filter.includePatterns)
}
+ setTestNameIncludePatterns(listOf("*Fir*", "Fir*", "*fir*"))
}
diff --git a/plugins/sam-with-receiver/build.gradle.kts b/plugins/sam-with-receiver/build.gradle.kts
index a8b7bc8..d157d0b 100644
--- a/plugins/sam-with-receiver/build.gradle.kts
+++ b/plugins/sam-with-receiver/build.gradle.kts
@@ -3,6 +3,7 @@
plugins {
kotlin("jvm")
id("jps-compatible")
+ id("org.jetbrains.kotlinx.kover")
}
dependencies {
@@ -54,4 +55,5 @@
dependsOn(":dist")
workingDir = rootDir
useJUnitPlatform()
+ setTestNameIncludePatterns(listOf("*Fir*", "Fir*", "*fir*"))
}