Skip to content

Latest commit

 

History

History
41 lines (22 loc) · 914 Bytes

CODE_COVERAGE.md

File metadata and controls

41 lines (22 loc) · 914 Bytes

Code Coverage Report generation

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  

Reports location

Code Coverage report is located here:

build/reports/jacoco/codeCoverageReport/html/index.html

Code Coverage for a single module ⭐

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.