To generate the code coverage report, execute the following command:
Windows:
gradlew.bat codeCoverageReport
Linux/Unix/OSX:
./gradlew codeCoverageReport
This will generate the code coverage report for ALL the modules.
NOTE: since the code coverage task runs the integration tests, be sure that testing docker containers are up and running:
cd docker
docker-compose -f docker-compose-test.yml up
Code Coverage report is located here:
build/reports/jacoco/codeCoverageReport/html/index.html
Run:
./gradlew :<MODULE>:codeCoverage
The result is located in:
MODULE/build/reports/jacoco/index.html
For example:
./gradlew :jodd-core:codeCoverage
open jodd-core/build/reports/jacoco/index.html
NOTE: Package jodd.asm6
is excluded from code coverage, but still reported locally.