Provides support for JaCoCo Code Coverage in combination with Java containers.
- Allows for recording and extraction of code coverage files from containers
- Support for Testcontainers API
NOTE: Using this is a bit complex as it also requires some changes to the java application in the container.
Please have a look at the advanced-demo and the corresponding GitHub Actions workflow for details.
The configuration is dynamically loaded from (sorted by highest priority)
- Environment variables
- prefixed with
TCI_JACOCO_ - all properties are in UPPERCASE and use
_instead of.or-
- prefixed with
- System properties
- prefixed with
tci.jacoco.
- prefixed with
Full list of configuration options
| Property | Type | Default | Notes |
|---|---|---|---|
enabled |
bool |
false |
You should probably set this to true |
execution-data-files-dir |
string |
target/jacoco-execution-data-files |
Location where the jacoco execution reports/execution data files are stored |
move-old-execution-data-files-dir |
bool |
true |
If execution-data-files-dir already exists it will be moved to execution-data-files-dir-old |
execution-data-files-dir-old |
string |
target/jacoco-execution-data-files-old |
Location where previous jacoco execution reports/execution data files are moved to. If the directory already exists it will be deleted. |
execution-data-file-suffix |
string |
-jacoco.exec |
Suffix for the jacoco reports/execution data files |

