Skip to content

Instantly share code, notes, and snippets.

View barfuin's full-sized avatar

Barfuin barfuin

View GitHub Profile
@tsjensen
tsjensen / gradle-jacoco-aggregated-report.md
Last active March 29, 2024 14:32
Gradle: Create a JaCoCo Report aggregating all subprojects

Create an Aggregated JaCoCo Report

The JaCoCo results from all subprojects shall be combined.

Requirements

  • Don't make any assumptions about where files are located in the build folders.
  • Refer to the sources of truth for getting at needed information.
  • Don't make any assumptions about which source sets are being tested. It might be main, but it might not.
  • Handle subprojects that don't JaCoCo.