Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 670 Bytes

File metadata and controls

26 lines (17 loc) · 670 Bytes

A simple project showing how to configure Jacoco Maven Plugin

The configuration of Jacoco Maven Plugin to analyse code coverage is not always well described.

Most of the time, the need to define a Maven property between Jacoco Plugin and Surefire Plugin is not explained and you won't get any coverage result without that :-(

The configuration used in this project is taken from Vogella article.

Run tests

mvn test

See the code coverage

firefox target/site/jacoco/index.html &

Improve the coverage

Uncomment the ignored tests.