Hi there, dear .NET developers,
We have just released a new version (10.4) of our analyzers on SonarQube Cloud.
This release brings support for detailed test results display in the UI (which was already available for other languages, and had been missing for .NET for a long time).
You can now view the number of unit tests, as well as details on skipped tests, failed tests, and test duration, from all supported coverage tools (xUnit, MsTest, and nUnit). You can also see the values for test density and metrics at the individual file level.
On top of that, this release brings significantly optimized memory allocation, resulting in memory usage reduction during the build.
We also worked on improving our rules to eliminate some false-positives.
You can see more details in the release notes on GitHub.
This new version is available today on SonarQube Cloud, and will be included in the upcoming SonarQube Server and SonarQube Community Build releases, as well as upcoming SonarQube for IDE versions.
Please note that, as explained in a previous post, the new details on tests might have some impact if your solution contains generated tests. By default, we do not index generated files, which will prevent us from mapping the corresponding tests and counting them towards the total. This means that you might see the total number of tests go DOWN if you use those. If you have quality gate conditions based on number of tests, or any metric related to unit tests, you might see changes or even quality gate failures (coverage is not impacted). Please take this into account.
As usual, please send us your feedback on this release!