how to use jacoco.exec report

前端 未结 10 1325
感情败类
感情败类 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:56

    Jacoco provides a command line lib to process jacoco.exec data: Jacoco cli doc

    After you install Jacoco, you can generate report with following command:

    java -jar lib/jacococli.jar report jacoco.exec \
    --html ./report \
    --sourcefiles [path/to/your/source/files] \
    --classfiles [path/to/your/class/files]
    

提交回复
热议问题