问题
I am making a jar file of project1 and placing the jar file in project2.
For project2 I'm able to create the coberatura report.
My question is how do I get the cobertura report for project1(in jar format) which is in project2?
回答1:
I got solution.
- instrumented the class of project1
- build the jar
- place the jar in project2.
.ser
file created placed in tomcat home path.
I deployed project2 in tomcat and ran the application.
After stopping tomcat the .ser file was overwritten. Now generate the report.
来源:https://stackoverflow.com/questions/9117739/cobertura-report