问题
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