From cab45e8cd6c2c323661ff0f8e8f4d62776a0e295 Mon Sep 17 00:00:00 2001 From: himadieievsv Date: Sun, 7 Jan 2024 07:27:44 +0900 Subject: [PATCH] use kover for coverage report --- .github/workflows/unit-tests.yml | 6 +++--- build.gradle.kts | 12 ++---------- 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 66fdf9c..d78f37f 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -25,9 +25,9 @@ jobs: - name: Test Coverage run: | ./gradlew \ - :redpulsar-core:testCoverage \ - :redpulsar-jedis:testCoverage \ - :redpulsar-lettuce:testCoverage \ + :redpulsar-core:koverXmlReport \ + :redpulsar-jedis:koverXmlReport \ + :redpulsar-lettuce:koverXmlReport \ -DexcludeTags="integration" - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v3 diff --git a/build.gradle.kts b/build.gradle.kts index dd51945..b0ea047 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -8,7 +8,7 @@ plugins { kotlin("jvm") version "1.9.22" `java-library` id("org.jlleitschuh.gradle.ktlint") version "12.0.3" - jacoco + id("org.jetbrains.kotlinx.kover") version "0.7.5" `maven-publish` idea } @@ -28,7 +28,7 @@ subprojects { apply(plugin = "idea") apply(plugin = "java-library") apply(plugin = "maven-publish") - apply(plugin = "jacoco") + apply(plugin = "org.jetbrains.kotlinx.kover") kotlin { jvmToolchain(11) @@ -115,12 +115,4 @@ subprojects { } } } - - tasks.withType { - reports { - xml.required.set(true) - csv.required.set(false) - html.required.set(false) - } - } }