Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 977 Bytes

File metadata and controls

43 lines (29 loc) · 977 Bytes

Code Coverage

This project uses JaCoCo for code coverage reporting.

Local Coverage Reports

Generate coverage report:

mvn clean verify

View the report:

open target/site/jacoco/index.html

Report Formats

JaCoCo generates:

  • HTML: target/site/jacoco/index.html - Interactive report
  • XML: target/site/jacoco/jacoco.xml - For CI/CD
  • CSV: target/site/jacoco/jacoco.csv - For data processing

GitHub Actions

Coverage is automatically:

  1. Generated on every push and PR
  2. Published to GitHub Pages (master only)

Coverage Threshold

Minimum 70% line coverage is required (configured in pom.xml).

To skip threshold check:

mvn clean test -Djacoco.skip=true

Troubleshooting

No report generated: Run mvn clean verify, not just mvn compile.

Coverage shows 0%: Ensure tests are in src/test/java and actually running.