how to use jacoco.exec report

前端 未结 10 1360
感情败类
感情败类 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 18:51

    I think the report will have already been generated. Look in the folder target/site/jacoco.

    This provides target/site/jacoco/jacoco.csv, which is some raw text that you can interpret relatively easily -- maybe import into a spreadsheet

    Most people will want target/site/jacoco/index.html, which is a report in web-page form.


    If you aren't seeing these reports, try explicitly requesting them and see if any clues are provided...

    mvn clean test jacoco:report
    

提交回复
热议问题