This plugin allows you to capture code coverage report from Emma. Jenkins will generate the trend report of coverage.
1. With maven 2.2.x you don't need to add anything to your POM file.
2. Add the "emma:emma" goal to your build to generate Emma reports.
1.- Add "emma:emma" goal to your maven Build
1.- Create the taskdef and other necessary information for ANT:
coverage.dir is the location emma will generate the report data to, and emma.dir should be the location of the emma binaries on your system. src.dir is the location of your source files, class.dir is the location of your binary files to be instrumented, and instrumented.dir is the location to store the instrumented binaries.
2.- Tell emma where to find the code to instrument, and the new location to place that code. Note that you must instrument the code before running tests on it.
Use instrpathref instead of instrpath in conjunction with a previously-defined path for more complex setups. Use the filter nested element to include or exclude certain code from being instrumented. For more information on the instr element, see http://emma.sourceforge.net/reference/ch02s03.html
3.- After the instrumented code has been run, tell emma how to prepare the reports:
This will generate an xml report, to the method depth of detail. For more information on the report element, see http://emma.sourceforge.net/reference/ch02s04.html
Skip to end of metadata Go to start of metadata