Skip to content
Snippets Groups Projects
Commit 3ed781ad authored by Sören Henning's avatar Sören Henning
Browse files

Start playing around with test coverage

parent c7788d20
Branches test-coverage
No related tags found
No related merge requests found
Pipeline #10291 passed
...@@ -204,12 +204,14 @@ test-benchmarks: ...@@ -204,12 +204,14 @@ test-benchmarks:
extends: .benchmarks extends: .benchmarks
needs: needs:
- build-benchmarks - build-benchmarks
script: ./gradlew test --continue script: ./gradlew test jacocoTestReport --continue
artifacts: artifacts:
when: always when: always
reports: reports:
junit: junit:
- "theodolite-benchmarks/**/build/test-results/test/TEST-*.xml" - "theodolite-benchmarks/**/build/test-results/test/TEST-*.xml"
paths:
- build/jacoco/jacoco.xml
checkstyle-benchmarks: checkstyle-benchmarks:
stage: check stage: check
......
plugins { plugins {
id 'java' id 'java'
id 'jacoco'
id 'checkstyle' id 'checkstyle'
id 'pmd' id 'pmd'
...@@ -12,6 +13,18 @@ java { ...@@ -12,6 +13,18 @@ java {
targetCompatibility = JavaVersion.VERSION_11 targetCompatibility = JavaVersion.VERSION_11
} }
test {
finalizedBy jacocoTestReport // report is always generated after tests run
}
jacocoTestReport {
dependsOn test // tests are required to run before generating the report
reports {
xml.enabled true
html.enabled true
}
}
// Per default XML reports for SpotBugs are generated // Per default XML reports for SpotBugs are generated
// Include this to generate HTML reports // Include this to generate HTML reports
tasks.withType(com.github.spotbugs.snom.SpotBugsTask) { tasks.withType(com.github.spotbugs.snom.SpotBugsTask) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment