All Versions
Clover 4.0 DocumentationClover 3.3 Documentation
Clover 3.2 Documentation
More...
This documentation assumes you have already set up your Maven project and created unit tests.
There are three possible ways of running the plugin:
maven-clover-plugin report to the reports section in your POM. This will instrument your source code, run your project's tests on the 'cloverified' code and generate Clover reports. Note that if you're in a multi-project environment, you must set the maven.clover.multiproject property to 'true' in your master project. Doing so will automatically gather Clover data from all of your sub-projects, and aggregate them in a master project report.clover:test which will instrument your source code and run your project's tests on the 'cloverified' code. Alternatively you can call clover:multiproject to run the clover:test goal on all your sub-projects in you're in a multi-project environment. You'll then need to call clover:report to generate the reports.clover:on followed by whatever other goal you wish. For example:
maven clover:on war
clover:report to generate the reports.