JaCoCo - SonarQube - No information about coverage per test

前端 未结 4 1485
清歌不尽
清歌不尽 2021-01-03 21:35

I\'m using JaCoCo for Code Coverage. The Unit Test reports are created with junit and they are imported correctly, so that the unit test information is shown properly. The <

4条回答
  •  孤独总比滥情好
    2021-01-03 22:07

    Have you tried using the prepare-agent?

    mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent install
    

    Also, if your coverage keeps showing 0%, you might need to follow this advice:

    If your project already uses the argLine to configure the surefire-maven-plugin, be sure that argLine defined as a property, rather than as part of the plugin configuration."

提交回复
热议问题