Skip to content

A simple project showing how to configure Jacoco Maven Plugin

Notifications You must be signed in to change notification settings

grumpyf0x48/java-code-coverage-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

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.

About

A simple project showing how to configure Jacoco Maven Plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages