Sonarqube API single class test coverage

后端 未结 1 947
你的背包
你的背包 2021-01-14 17:27

I am trying to retrieve the unit test code coverage for individual classes through the SonarQube API (Sonar version 4.1.2). Everything is working fine, and I can see the met

相关标签:
1条回答
  • 2021-01-14 17:58

    I think this is what you are after

    [hostname]/api/resources?resource=[com.test]:[module-name]:[fully qualified class]&metrics=coverage,branch_coverage

    I have added an example below.

    http://sonar-server/api/resources?resource=com.test:module:com.test.service.impl.CheckServiceImpl&metrics=coverage,branch_coverage

    I looked at the page you shared and used this also :

    http://docs.codehaus.org/pages/viewpage.action?pageId=229743280

    0 讨论(0)
提交回复
热议问题