db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Db-derby Wiki] Update of "CodeCoverageWithEMMA" by VemundOstgaard
Date Mon, 03 Mar 2008 14:20:34 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Db-derby Wiki" for change notification.

The following page has been changed by VemundOstgaard:
http://wiki.apache.org/db-derby/CodeCoverageWithEMMA

New page:
= Measuring code coverage with EMMA =

This page is intended to contain up to date information on how to measure code coverage for
the Derby tests with the EMMA tool.

= Versions =

Running the Derby junit tests instrumented with EMMA has been tested with EMMA version 2.0.5312.

= Running EMMA with ant =

Some ant targets have been created to help measure code coverage with EMMA for the Derby tests
written in junit. To use these ant targets you need to download EMMA and place the two jar-files
(emma.jar and emma_ant.jar) in the tools/java/ directory in your sandbox. Here they will be
found by the Derby build system and the ant targets related to EMMA should work as intended.
You can download the latest EMMA jar-files from http://emma.sourceforge.net/downloads.html.

= Ant Targets =
|| '''ant target''' || '''Comments''' ||
|| `emma-all` || Instruments the Derby jar files with EMMA and runs `junit-all` automatically
setting the classpath to the jar files instrumented with EMMA. When the tests are finished,
a code coverage report is produced in three copies (txt, html and xml) in the directory where
the test logs are placed. ||
|| `emma-single` || Instruments the Derby jar files with EMMA and runs `junit-single` automatically
setting the classpath to the jar files instrumented with EMMA. When the tests are finished,
a code coverage report is produced in three copies (txt, html and xml) in the directory where
the test logs are placed. As for the `junit-single` task the test or suite to execute is selected
by setting the system property derby.junit.testclass to the full classname of the test or
suite you want to run. ||
|| `emma-clean` || Remove the EMMA-instrumented jar files located at jars/emma/ ||
|| `junit-clean` || Remove any folders from previous junit runs (with or without EMMA) through
ant targets. ||

Mime
View raw message