Amaury
Amaury

Reputation: 15

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

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 ?

Upvotes: 1

Views: 955

Answers (1)

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

Upvotes: 1

Related Questions