add test coverage plugin

This commit is contained in:
ChUrl
2020-12-16 14:55:38 +01:00
parent e08cbcb15a
commit 938d2a6afe
2 changed files with 8 additions and 2 deletions

View File

@ -2,13 +2,18 @@ plugins {
id 'java'
id 'application'
id 'antlr'
id 'jacoco'
}
group 'de.churl'
version '1.0-SNAPSHOT'
version '1.0'
sourceCompatibility = '14'
mainClassName = 'StupsCompiler'
jacocoTestReport {
dependsOn test // tests are required to run before generating the report
}
jar {
manifest {
attributes "Main-Class": "$mainClassName"
@ -37,4 +42,5 @@ dependencies {
test {
useJUnitPlatform()
finalizedBy jacocoTestReport
}