Skip to content
Snippets Groups Projects
Commit f204bfea authored by Denis Arrivault's avatar Denis Arrivault
Browse files

Adding jacoco

parent 21aef476
Branches
Tags
No related merge requests found
Pipeline #
......@@ -7,3 +7,4 @@ build/
*.bkp
*.out
.classpath
/.gradle/
......@@ -26,14 +26,10 @@ tests:
- ./gradlew test
- ./gradlew jacocoMergeReport
artifacts:
when: always
untracked: true
paths:
# Tests report
- build/reports/tests
# Tests coverage report
- build/reports/jacoco/merge/html/
when: on_failure
expire_in: 8d
except:
- tags
- build
expire_in: 10d
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
// Apply the java plugin to add support for Java
apply plugin: 'java'
apply plugin: 'application'
apply plugin: 'jacoco'
jacoco {
toolVersion = "0.8.1" //checked at http://www.eclemma.org/jacoco/
}
version = '1.0.0'
applicationName = "ImmutableComplex"
......@@ -37,3 +42,13 @@ installLocally.onlyIf {
project.hasProperty('installDir')
}
jacocoTestReport {
reports {
xml.enabled false
csv.enabled false
html.destination "${buildDir}/jacocoHtml"
}
}
test.finalizedBy(jacocoTestReport)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment