You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2022/12/16 01:51:57 UTC

[groovy] branch danielsun/codecov updated: Trigger jacocoTestReport after tests run

This is an automated email from the ASF dual-hosted git repository.

sunlan pushed a commit to branch danielsun/codecov
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/danielsun/codecov by this push:
     new f4c092bb4c Trigger jacocoTestReport after tests run
f4c092bb4c is described below

commit f4c092bb4cbbc862de005994205b00c933ebd79c
Author: Daniel Sun <su...@apache.org>
AuthorDate: Fri Dec 16 09:51:36 2022 +0800

    Trigger jacocoTestReport after tests run
---
 build-logic/src/main/groovy/org.apache.groovy-tested.gradle | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/build-logic/src/main/groovy/org.apache.groovy-tested.gradle b/build-logic/src/main/groovy/org.apache.groovy-tested.gradle
index a3c9003546..cb4c05cef1 100644
--- a/build-logic/src/main/groovy/org.apache.groovy-tested.gradle
+++ b/build-logic/src/main/groovy/org.apache.groovy-tested.gradle
@@ -63,6 +63,10 @@ tasks.withType(Test).configureEach {
         }
     }
 
+    if (sharedConfiguration.hasCodeCoverage.get()) {
+        finalizedBy jacocoTestReport
+    }
+
     forkEvery = 50
     maxParallelForks = sharedConfiguration.isRunningOnCI ? 1 : Runtime.runtime.availableProcessors().intdiv(2) ?: 1
     scanForTestClasses = true