Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 20 Next »

Description / Feature

This plugin is included in the Java Ecosystem.

It provides code coverage for Java projects with JaCoCo (an open source and robust Java code coverage tool, developed by the authors of EclEmma). For more information, see: Comparison of Emma, Clover, Cobertura and JaCoCo.

SonarQube Java Plugin

1.1
1.21.31.41.52.0

JaCoCo

0.5.100.6.20.6.20.6.30.6.30.6.3

Usage

See Code Coverage by Unit Tests for Java Project tutorial.

Known Limitations

  • Some libraries complain on classes, which were instrumented by JaCoCo, so exclusions must be set:
    • Javassist (e.g. when Hibernate used) - "*_javassist_*"
    • Drools - "org.drools.*"
  • The exact number of line hits is not available, because JaCoCo reports only the status of a line (no code, not covered, partly covered, fully covered) - see JaCoCo Coverage Counters.
  • No labels