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

Adding jacoco

parent 21aef476
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -7,3 +7,4 @@ build/ ...@@ -7,3 +7,4 @@ build/
*.bkp *.bkp
*.out *.out
.classpath .classpath
/.gradle/
...@@ -26,14 +26,10 @@ tests: ...@@ -26,14 +26,10 @@ tests:
- ./gradlew test - ./gradlew test
- ./gradlew jacocoMergeReport - ./gradlew jacocoMergeReport
artifacts: artifacts:
when: always
untracked: true
paths: paths:
# Tests report - build
- build/reports/tests expire_in: 10d
# Tests coverage report
- build/reports/jacoco/merge/html/
when: on_failure
expire_in: 8d
except:
- tags
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 the java plugin to add support for Java
apply plugin: 'java' apply plugin: 'java'
apply plugin: 'application' apply plugin: 'application'
apply plugin: 'jacoco'
jacoco {
toolVersion = "0.8.1" //checked at http://www.eclemma.org/jacoco/
}
version = '1.0.0' version = '1.0.0'
applicationName = "ImmutableComplex" applicationName = "ImmutableComplex"
...@@ -37,3 +42,13 @@ installLocally.onlyIf { ...@@ -37,3 +42,13 @@ installLocally.onlyIf {
project.hasProperty('installDir') 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