This plugin allows you to capture code coverage report from CodeCover. Jenkins will generate the trend report of coverage.
1.- Enable recording CodeCover coverage report, and configure it.
1.- Make sure you include the CodeCover ant jars in your classpath, and the CodeCover taskdef:
2.- Then, the code you want to cover needs to be instrumented
3.- If you need non-instrumented code (like your unit tests), move them to the instrumented folder so they are compiled together
4.- The instrumented code needs to be compiled
5.- Run the compiled, instrumented code
5a.- If you're using JUnit, the following method of running instrumented is used.
6.- Analyze the code.
Skip to end of metadata Go to start of metadata