31 May 2011
With great pleasure Atlassian presents Clover 3.1.Clover 3.1 adds support for Java 1.7 language constructs, Maven 3, Groovy 1.7 & 1.8, Grails 1.3.7, Eclipse 3.6 and 3.7 and Intellij IDEA 10.5 and 11.
Upgrading to Clover 3.1 is free for all customers with active Clover software maintenance at the date of launch and of subsequent updates.
Highlights of Clover 3.1
Java 1.7 Support
Clover 3.1 now provides support for the Java 1.7 language features including try resource blocks, multi-catch statements, diamond generics syntax, binary numeric literals and numeric literals with underscores.
Maven 3 Support
Clover 3.1 now supports recording and reporting code coverage in all your Maven 3 projects. Check out the Clover-for-Maven plugin.
Groovy 1.6-1.8 Support for Ant, Maven 2 and Grails
Ant and Maven 2 plugins now provide support for Groovy 1.6 through to 1.8. Most Clover-for-Ant tasks will work on Groovy code and the Clover-for-Maven 2 plugin now supports Groovy code compilation and report generation.
Read more: Clover-for-Ant Upgrade Guide.
Unless otherwise indicated, all tasks described in the Clover-for-Ant User's Guide work with Groovy code.
Groovy Code Coverage Reporting
- Clover will only report a line that contains Groovy's safe operator as covered if the check evaluated to both true and false.
- Clover also supports filtering specified Groovy methods.
Screenshot: Clover Groovy Code Coverage
Screenshot: Clover Filtering Specified Groovy Methods
Clover-for-Grails Plugin for Grails 1.3.7
Clover 3.1 incorporates a plugin for the Grails web application development framework supporting Grails version 1.3.7. Grails project developers can test their Groovy code using Clover to generate coverage reports.
The Clover-for-Grails plugin is very easy to install and upgrade, with multiple installation options that can be issued from a single Grails command. Upgrading is as easy as reinstalling the Clover-for-Grails plugin.
You can configure the Clover-for-Grails plugin on the command line or by including Clover-for-Ant-based (Gant) instructions directly inside the
Screenshot: Clover Report Dashboard of a Grails Project
Support for Eclipse 3.6 and 3.7
The Clover-for-Eclipse plugin now supports Eclipse 3.6 and 3.7. Eclipse does not yet support Java 1.7 language features but Clover-for-Eclipse is ready once it does.
Support for Intellij 10.5 and 11
The Clover-for-IDEA plugin now supports Intellij 10.5 and 11 including support for Java 1.7 language features.
Screenshot: Clover-for-IDEA with a project using Java 1.7 language features