maven jacoco: not generating code coverage report

后端 未结 4 597
感情败类
感情败类 2020-12-14 02:23

I am trying to setup jacoco for my project\'s code coverage

My project is based on Java 1.8

Here is how things look in my project

4条回答
  •  佛祖请我去吃肉
    2020-12-14 03:00

    This worked for me:

    mvn clean install
    mvn site
    

    Even though the minimum code coverage was not met and mvn clean install failed, the mvn site build succeeded and created the coverage report at:

    .../target/site/jacoco/index.html
    

提交回复
热议问题