Test coverage

Test coverage is measured with Kover. Only asyncapi-generator-core is measured. The report is a local build output; it is not published with this documentation.

Generating coverage reports

Run the following from the project root:

mvn verify -pl asyncapi-generator-core

This generates:

  • HTML report: asyncapi-generator-core/target/site/kover/html/index.html
  • XML report: asyncapi-generator-core/target/site/kover/report.xml

The HTML report provides browsable per-package and per-file coverage details.

Interpreting the report

  • Line coverage — percentage of code lines executed by tests
  • Branch coverage — percentage of decision branches (if/when) exercised
  • Instructions — low-level bytecode instruction coverage (most precise)

Focus on line and branch coverage for actionable insights. Instruction coverage is useful for detecting untested edge cases in conditionals.

Core tests are lean by design, and the system-test module owns end-to-end coverage. The report therefore shows what the core tests exercise, not what the system tests exercise.