add test coverage plugin
This commit is contained in:
2
.idea/CompilerProjekt.iml
generated
2
.idea/CompilerProjekt.iml
generated
@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<module external.linked.project.id="CompilerProjekt" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="de.churl" external.system.module.version="1.0-SNAPSHOT" type="JAVA_MODULE" version="4">
|
<module external.linked.project.id="CompilerProjekt" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="de.churl" external.system.module.version="1.0" type="JAVA_MODULE" version="4">
|
||||||
<component name="CheckStyle-IDEA-Module">
|
<component name="CheckStyle-IDEA-Module">
|
||||||
<option name="configuration">
|
<option name="configuration">
|
||||||
<map />
|
<map />
|
||||||
|
@ -2,13 +2,18 @@ plugins {
|
|||||||
id 'java'
|
id 'java'
|
||||||
id 'application'
|
id 'application'
|
||||||
id 'antlr'
|
id 'antlr'
|
||||||
|
id 'jacoco'
|
||||||
}
|
}
|
||||||
|
|
||||||
group 'de.churl'
|
group 'de.churl'
|
||||||
version '1.0-SNAPSHOT'
|
version '1.0'
|
||||||
sourceCompatibility = '14'
|
sourceCompatibility = '14'
|
||||||
mainClassName = 'StupsCompiler'
|
mainClassName = 'StupsCompiler'
|
||||||
|
|
||||||
|
jacocoTestReport {
|
||||||
|
dependsOn test // tests are required to run before generating the report
|
||||||
|
}
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
manifest {
|
manifest {
|
||||||
attributes "Main-Class": "$mainClassName"
|
attributes "Main-Class": "$mainClassName"
|
||||||
@ -37,4 +42,5 @@ dependencies {
|
|||||||
|
|
||||||
test {
|
test {
|
||||||
useJUnitPlatform()
|
useJUnitPlatform()
|
||||||
|
finalizedBy jacocoTestReport
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user