Skip to content

Commit

Permalink
use kover for coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
himadieievsv committed Jan 6, 2024
1 parent 0401903 commit cab45e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 2 additions & 10 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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)
Expand Down Expand Up @@ -115,12 +115,4 @@ subprojects {
}
}
}

tasks.withType<JacocoReport> {
reports {
xml.required.set(true)
csv.required.set(false)
html.required.set(false)
}
}
}

0 comments on commit cab45e8

Please sign in to comment.