Summary
Clover 2.0 is the latest release of Atlassian's Java code coverage tool. The new version provides close integration with test runs, and displays coverage results in a way that suggests what parts of the code require more tests.
Advertisement
Atlassian released Clover 2.0, the new version of its Java code coverage tool. Clover instruments the bytecode to obtain test coverage results, and presents those results in various formats, such as HTML, PDF, or inside an IDE environment.
A key feature of the new version is that it integrates closely with test runs:
Clover 2.0 reports fully integrate the results of your latest test run, including pass/fail status, time taken, and error messages. Browse the test results for each package and drill down to see results for test suites and individual test case runs...
Clover 2.0 takes Coverage Analysis to a new level by not just showing you what code is covered by your tests, but also which tests hit what code. Drill down to a particular class to see the exact statements a particular test or set of tests covered. For each test case, you can jump straight to the source code for that test. If the test failed, Clover will link to the source line where the failure occurred.
Clover 2.0 also provides intuitive ways to determine which parts of the code require more test coverage:
New 'Coverage Cloud' reports give you an instant view of the classes needing attention in your project. The Quick Wins Coverage Cloud shows you the classes on which to focus your testing effort to quickly increase the overall coverage score for the project. The Project Risks Coverage Cloud highlights the classes that contain the most complex untested code and thus represent the highest risk to the project.
In addition to those features, Clover 2.0 also provides:
Per-method coverage statistics
Complexity statistics
Simplified Ant tasks
Integrated historical reporting
Aggregate package statistics
Configurable report columns, column formats and column thresholds
Improved runtime coverage recording performance
New runtime configuration options to control coverage recording
Completely rewritten Eclipse plugin
Rich reporting in HTML, PDF or XML.
Identification of 'dead code' in an application.
What code coverage tool do you use for your Java applications?