Sonarqube API single class test coverage

会有一股神秘感。 提交于 2019-12-01 09:25:19

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!