Skip to content

Commit

Permalink
Add coverage (#784)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexProgrammerDE authored Jun 17, 2024
1 parent bdca10f commit 5624d77
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions protocol/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id("mcprotocollib.publish-conventions")
jacoco
}

version = "1.21-SNAPSHOT"
Expand Down Expand Up @@ -31,3 +32,16 @@ dependencies {
// Test dependencies
testImplementation(libs.junit.jupiter)
}

tasks.test {
finalizedBy(tasks.jacocoTestReport)
}

tasks.jacocoTestReport {
dependsOn(tasks.test)
reports {
xml.required = false
csv.required = false
html.outputLocation = layout.buildDirectory.dir("jacocoHtml")
}
}

0 comments on commit 5624d77

Please sign in to comment.