This page contains an overview of the Schmant Emma task package and links to other documentation files. The latest version of the Schmant Emma task package (including the documents here) can always be found at www.schmant.org.
This task package contains tasks for running Emma code coverage analysis on Java programs.
The classes to analyze must first be instrumented using the EmmaInstrumentationTF task. When the analyzed program is run, coverage data is saved in a data file. After the program has been run, a coverage report is created using the EmmaReportTF task. To merge several coverage data files from different program runs before a report is created, use the EmmaMergeTF task.
There are two different methods of making the tasks in this task package available to Schmant scripts. Either
-tflag to set the task package path.
See the the task reference documentation for how to build task reference documentation containing Schmant's tasks and the tasks in this task package.
To run unit tests, unzip the task package and follow the instructions below. The tests must be run against a Schmant source distribution.
to select the Schmant installation to run the tests against. Separate the
different paths with the platform's path separator character (":" on Unix, ";"
on Windows). On Windows, the
schmantInstallations=... string has to
be enclosed in double quotes (").
See the header of the
run_unit_tests.js script for more
Below are links to other documentation resources.
The Schmant Emma task package requires at least Schmant 1.1 to run.