testing - how to use jacoco.exec report -


i generated code coverage report jacoco, jacoco.exec. don't know how use ...

the way generated through command line:

java -javaagent:/path/to/jacocoagent.jar=include=some.package.*,output=file org.junit.runner.junitcore some.package.classtest 

then got jacoco.exec report. need number of percentage, , using command line only. there way convert report readable txt file?

thanks all

per this thread can't use generated jacoco.exec directly produce report. can download jacoco's sample build.xml , use produce report, instead. you'll need make these changes build.xml: set the paths to

  • your downloaded jacocoant.jar
  • your jacoco.exec
  • your project source code
  • your compiled project class files

i changed default target "report". run typing "ant" , reports generated.


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -