Atlassian is happy to announce the launch of Clover 3.2, the latest feature release of our award-winning tool for Java code coverage and test optimization.

What’s new in Clover 3.2? It comes with the Java 8 language support

Clover can instrument, record code coverage, and calculate metrics for new Java 8 language features such as:

  • Lambda functions (written as “one-liner” expressions, as well as code blocks in curly braces)
  • Method references (such as “Math::abs”)
  • Virtual extension methods (i.e. “default” methods in interfaces)

Clover also handles repeating annotations introduced in Java 8.

Clover 3.2 can generate HTML, XML, and JSON reports with Lambda functions and method references shown like methods. It can also show code coverage recorded for them.

Just run the <clover-report> Ant task with showLambdaFunctions=true and showInnerFunctions=true, e.g.:






html_report_method_list_with_lambdas
Lambda functions declared inside methods or assigned to a class field can be shown

 

Clover 3.2 also brings support for Java 8 directly in your IntelliJ IDEA: for text highlighting, border markers, and tool tips. This helps to pinpoint Lambda functions which were declared but never executed.

intellij_idea_tooltip_markers
Code coverage for Lambda functions is shown in the IDEA source editor

 

Note: It will be possible to use Clover-for-Eclipse with Java 8 too, as soon as Eclipse starts supporting it (Eclipse 4.3 Kepler does not handle Java 8 yet).

Want more info?

Read the Clover 3.2 Release Notes for more details.

 

Free trial

Interested in trying it out? Download a free 30-day trial now.

Download now

 

Fresh ideas, announcements, and inspiration for your team, delivered weekly.

Subscribe now

Fresh ideas, announcements, and inspiration for your team, delivered weekly.

Subscribe now