bld Extension to Generate Code Coverage Reports with JaCoCo
https://github.com/rife2/bld-jacoco-report
.github/workflows | ||
.idea | ||
.vscode | ||
config | ||
examples | ||
lib/bld | ||
src | ||
.gitignore | ||
bld | ||
bld.bat | ||
LICENSE.txt | ||
README.md | ||
update-test-resources.sh |
Bld Extension to Generate Code Coverage Reports with JaCoCo
To run the tests and generate the code coverage reports:
@BuildCommand(summary = "Generates Jacoco Reports")
public void jacoco() throws IOException {
new JacocoReportOperation()
.fromProject(this)
.execute();
}
./bld compile jacoco
- The HTML, CSV and XML reports will be automatically created in the
build/reports/jacoco/test
directory. - The execution coverage data will be automatically recorded in the
build/jacoco/jacoco.exec
file.
Please check the JacocoReportOperation documentation for all available configuration options.