当前位置: 动力学知识库 > 问答 > 编程问答 >

maven - SonarQube 4.4 upgrade can not show test coverage on dashboard

问题描述:

I upgraded my sonarqube from 4.1 to 4.4. as in the latest java plugin 2.4 you don't need to have a JaCoCo plugin. I have deleted the jacoco plugin, but now i can not see Tes coverage on sonar dashboard - it's blank. We use bamboo for CI tool and run sonar build from Bamboo. we run below maven command from bamboo build .

clean verify -Psonar sonar:sonar -U -fae -Dsonar.forceAnalysis=true

网友答案:

With latest versions of the SQ Java plugin, tests are no longer automatically executed. They must be executed prior to the SonarQube analysis and configured so that they produce reports that can be read by the SQ Java plugin.

Everything is explained on the Code Coverage by Unit Tests for Java Project documentation page.

分享给朋友:
您可能感兴趣的文章:
随机阅读: