Skip to content

Commit

Permalink
Add kover run with gradlew
Browse files Browse the repository at this point in the history
  • Loading branch information
GregHib committed Jan 22, 2024
1 parent 4ceead1 commit ca4f7cc
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/run_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ jobs:
uses: gradle/gradle-build-action@v2
with:
gradle-version: 8.5
- run: gradle test
- run: ./gradlew test
17 changes: 17 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ buildscript {

plugins {
kotlin("jvm") version "1.8.21"
id("org.jetbrains.kotlinx.kover") version "0.7.5"
}

allprojects {
Expand Down Expand Up @@ -38,6 +39,22 @@ allprojects {
kotlinOptions.jvmTarget = JavaVersion.VERSION_19.toString()
kotlinOptions.freeCompilerArgs = listOf("-Xinline-classes", "-Xcontext-receivers", "-Xjvm-default=all-compatibility")
}
test {
useJUnitPlatform()
failFast = true
}
}

}

kover {
useJacoco()
}

koverReport {
filters {
includes {
classes("world.gregs.voidps")
}
}
}

0 comments on commit ca4f7cc

Please sign in to comment.