Show unit test result details

Hi,

Is there a page which shows the detail result of unit test?
SonarQube shows the numbers of the unit test result. However, many developers want to see which unit tests are failed or succeeded. Please find the attached screenshot.


Any commend would be help me.

Many thanks,
Alvin

Hey there.

This is not possible. This metrics are, overall, rather historical and vestigal leftovers from SonarQube’s early days. In general, we only expect SonarQube analysis to be run when all unit tests have succeeded.

1 Like

Hi Colin,

Thank you for your quick response.
SonarQube will be the awesome quality platform if it shows unit test details. Developers are visiting here and there to check the code quality and test results.

Many thanks,
Alvin

1 Like

I can only second that. While expecting that running SonarQube only on code which passes all tests sounds reasonable, there is a twist to this:

If SonarQube should be a “central quality platform”, I need to show also unit test results (and report them!). Only then it is a one-stop-shop for developers for identifying issues. Keep in mind that especially for multi-variant builds it totally makes sense that a unit test passes on a developer machine (for the default toolchain, e.g. in C++) and then fails only later in the CI system (for a different variant that the developers usually do not build - there may be many variants…).

1 Like

I completely agree.

But there is a solution just install Sonar Qube 4.x, :joy: