Skip to content

Commit

Permalink
Add coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexProgrammerDE committed May 14, 2024
1 parent d5298b3 commit 1080af5
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.20.6-2-SNAPSHOT"
Expand Down Expand Up @@ -28,3 +29,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 1080af5

Please sign in to comment.