added jacoco

This commit is contained in:
Elias Csomor 2022-11-12 16:13:02 +01:00
parent bee517317a
commit 6523e1d791
1 changed files with 11 additions and 1 deletions

View File

@ -3,6 +3,7 @@ plugins {
id 'application' id 'application'
id 'org.openjfx.javafxplugin' version '0.0.13' id 'org.openjfx.javafxplugin' version '0.0.13'
id 'org.beryx.jlink' version '2.25.0' id 'org.beryx.jlink' version '2.25.0'
id 'jacoco'
} }
group 'ch.zhaw.gartenverwaltung' group 'ch.zhaw.gartenverwaltung'
@ -45,6 +46,15 @@ dependencies {
test { test {
useJUnitPlatform() useJUnitPlatform()
finalizedBy jacocoTestReport
}
jacocoTestReport {
dependsOn test
}
jacoco {
toolVersion = "0.8.8"
} }
jlink { jlink {
@ -57,4 +67,4 @@ jlink {
jlinkZip { jlinkZip {
group = 'distribution' group = 'distribution'
} }