how to use jacoco.exec report

前端 未结 10 1364
感情败类
感情败类 2020-12-07 18:30

I generated a code coverage report from jacoco, which is jacoco.exec. But I don\'t know how to use it ...

The way I generated it is through command line:

10条回答
  •  醉酒成梦
    2020-12-07 19:03

    Per this thread you can't use your generated jacoco.exec directly to produce a report. You can download Jacoco's sample build.xml and use it to produce a report, instead. You'll need to make these changes to build.xml: set the the paths to

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

    I also changed the default target to "report". Then run it by typing "ant" and your reports will be generated.

提交回复
热议问题