How to Get the Code Coverage Data Into SonarQube

The code coverage is an important part of the quality metrics of SonarQube. Unfortunately, SonarQube needs some extra steps to use our code coverage reports from our Azure DevOps pipeline as part of its code analysis. As in the last posts on code coverage, we again use Coverlet and ReportGenerator as part of our Azure …

Read more

Publishing Code Coverage in Your Azure DevOps Build Pipeline

Last week we used Coverlet and ReportGenerator to collect code coverage on our development machines. In this post we continue this journey and extend our build pipelines to get a nice coverage report with every continuous integration build.   Extending the test task We can collect the code coverage files in the build pipeline by …

Read more

Code Coverage made Easy: A Step-by-Step Guide for .NET 6

For .Net 4.8 it was enough to install Visual Studio Enterprise Edition on the build server and check the box for code coverage in the Testing task of Azure DevOps. The build agent then collected the coverage data and published it as part of your builds. Unfortunately, for .Net 6 this no longer works, and …

Read more

My Highlights of NDC Oslo 2022

Back in Oslo at last. After an online edition of NDC Oslo in 2020 and the travel restrictions at the start of the Omicron wave in 2021, I haven’t been to Oslo for a while. Visiting in September is in many ways different from June. It is colder, and it gets dark early (around 7 …

Read more

NDC Oslo 2022 Workshop: Code That Fits in Your Head

Developers spend a lot more time on reading code than writing it. Therefore, if we want to get more effective, we must take a deep look at the reading part. In this Workshop Mark Seemann uses a set of heuristics to address the common obstacles developers face when it comes to understanding code. Keep in …

Read more

StyleCop for .Net 5 Projects: Clean-up

With your StyleCop installation done and your custom configuration in place, you are now ready to clean-up your project. This is part three of my small series of StyleCop for .Net 5 Projects: Part 1: StyleCop for .Net 5 Projects: Installation Part 2: StyleCop for .Net 5 Projects: Custom Configuration Part 3: StyleCop for .Net …

Read more