Is it possible to gather unit test list & results on SonarQube 4.5?

不打扰是莪最后的温柔 提交于 2020-01-06 13:50:13

问题


I would like to gather and extract information about unit tests analysed by sonar such as : test name, status, test case ran ... I wonder if I can get this via the REST API ? an dif yes, how can I do such a thing ?

I am able to find all issues related to unit test with the filter "?rules=" but that doesn't quite fit my needs. Actually, sonar only rises one issue per file with failed test and I have no other informations such as which test cases fail or anything. Am I doing something wrong or what I want is simply not available ?


回答1:


This is possible thanks to the "/api/tests/show" API WS.

  • See the online documentation
  • See a live example on Nemo


来源:https://stackoverflow.com/questions/26545754/is-it-possible-to-gather-unit-test-list-results-on-sonarqube-4-5

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