From a39d03abf8792e257fe6b515a3686fa462f002b7 Mon Sep 17 00:00:00 2001 From: kske Date: Fri, 24 Dec 2021 11:18:39 +0200 Subject: [PATCH 1/2] Generate coverage report --- pom.xml | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 4d3e67c..0cac1d3 100644 --- a/pom.xml +++ b/pom.xml @@ -11,7 +11,7 @@ Undo-Redo A Java library for managing changes in an editor history. https://git.kske.dev/kske/event-bus - + core javafx @@ -182,11 +182,31 @@ maven-surefire-plugin 3.0.0-M5 - --add-opens dev.kske.undoredo.core/dev.kske.undoredo.core=ALL-UNNAMED + ${argLine} --add-opens dev.kske.undoredo.core/dev.kske.undoredo.core=ALL-UNNAMED + + + org.jacoco + jacoco-maven-plugin + 0.8.7 + + + + prepare-agent + + + + report + test + + report + + + + + - From d26c0fe25671fd49a5cf614dbf634732a627a341 Mon Sep 17 00:00:00 2001 From: kske Date: Fri, 24 Dec 2021 14:41:27 +0200 Subject: [PATCH 2/2] Publish coverage report to Jenkins --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index ae2c663..013b499 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,6 +18,7 @@ pipeline { post { always { junit '*/target/surefire-reports/*.xml' + publishCoverage adapters: [jacocoAdapter(mergeToOneReport: true, path: '*/target/site/jacoco/jacoco.xml')] } } }