From 471152a0332db91d961da850866b203a955cd751 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 1 Oct 2024 18:34:51 +0200 Subject: [PATCH] =?utf8?q?=F0=9F=92=9A=20Record=20coverage=20using=20the?= =?utf8?q?=20default=20Coverage=20plugin?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 3 ++- build.gradle | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index b60339f..f975642 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -19,12 +19,13 @@ pipeline { jdk 'OpenJDK 8' } steps { - sh './gradlew test' + sh './gradlew test jacocoTestReport' } post { always { junit 'build/test-results/*/*.xml' jacoco classPattern: 'build/classes/*/main', sourcePattern: '**/src/main/' + recordCoverage(tools: [[parser: 'JACOCO', pattern: '**/jacocoTestReport.xml']]) } } } diff --git a/build.gradle b/build.gradle index 064b94f..b357d1b 100644 --- a/build.gradle +++ b/build.gradle @@ -115,6 +115,9 @@ jacocoTestReport { include "jacoco/*.exec" }) dependsOn test + reports { + xml.required = true + } } pitest { -- 2.7.4