This recipe is easiest way to I know to generate test coverage reports for a sakai project:
- Download the sakai developer license for clover (see attached)
- Write unit tests and configure maven to run these tests and/or test suites (see the maven test documentation for help setting up unit tests in maven)
- maven -Dmaven.clover.license.path=<path to clover.license> clover
- The test coverage reports are generated in target/docs/clover
Here is a sample clover report.