Jump to content

Java code coverage tools

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by ThurnerRupert (talk | contribs) at 20:13, 22 February 2013 (Created page with '{{under construction}} {{Infobox_Software | name = JaCoCo | developer = Marc Hoffmann, Brock Janiczak, Evgeny Mandrikov | latest_release_version = 0.6.2| ...'). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
JaCoCo
Developer(s)Marc Hoffmann, Brock Janiczak, Evgeny Mandrikov
Stable release
0.6.2 / February 3, 2013; 12 years ago (2013-02-03)
Operating systemCross-platform
TypeCode coverage
LicenseEPL
WebsiteEclEmma JaCoCo

Clover is a Java Code Coverage Analysis application developed by Atlassian. Although Clover is a commercial product, it is freely available to open source projects and non-profit institutions.

Some features include historical reporting, complete control over the coverage gathering process, command line toolset and API for legacy integration and more.

Clover also allows testing time to be reduced by only running the tests that cover the application code that was modified since the previous build. This is called Test Optimization and can lead to huge drops in the amount of time spent waiting for automated tests to complete.

A clover invocation from Apache Ant might look like:

<target name="html-clover-report" depends="define-tasks">
    <mkdir dir="${core.dir}/output/clover/html" />
    <clover-html-report outdir="${core.dir}/output/clover/html" title="aTAO Project"/>
</target>

where "define-tasks" would include:

<taskdef resource="cloverlib.xml" classpath="${clover.jar}"/>

See also