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

NDC Oslo 2023: My 10th NDC

Last week I was in Oslo to attend the NDC conference. I cannot really believe that this was already the 10th NDC Oslo I attended. With 2’600 attendees it was the biggest NDC event ever, but at least for me not the best.   Practical Clean Architecture workshop with Jason Taylor I started my NDC …

Read more

How to Fix the PKIX Certificate Error After Upgrading SonarQube

After I updated SonarQube to version 9.7, I got this strange entry in the logs: Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target Should you run into the same error, append a ;encrypt=false to the connection string to your SQL Server database:

I saw a …

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

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

StyleCop for .Net 5 Projects: Custom Configuration

With your StyleCop installation in place we can now look at how we can customise our StyleCop configuration. This is part two 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 5 …

Read more