From e4604ed176a93be1787f00da7ef2711f8ce3c351 Mon Sep 17 00:00:00 2001 From: Vitaliy Velikodniy Date: Mon, 22 May 2023 21:09:46 +0300 Subject: [PATCH] add jacoco test coverage calculation --- .github/workflows/pr.yml | 2 +- build.gradle | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 95c6a38..96124f9 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -14,7 +14,7 @@ jobs: java-version: 1.8 server-id: github - name: Run tests - run: ./gradlew test + run: ./gradlew test jacocoTestReport - name: Check styles of main run: ./gradlew checkstyleMain - name: Check styles of test diff --git a/build.gradle b/build.gradle index 17ae04f..da021f0 100644 --- a/build.gradle +++ b/build.gradle @@ -12,6 +12,7 @@ plugins { id 'checkstyle' id 'me.champeau.jmh' version '0.6.6' id 'signing' + id 'jacoco' } group 'name.velikodniy.vitaliy' @@ -121,3 +122,9 @@ uploadArchives { } } } + +jacocoTestReport { + reports { + xml.enabled true + } +}