Enabling Code Coverage for Sitecore with Coverlet & Github Actions
Last week I was tasked with enabling Code Coverage in our Sitecore Visual Studio solution and getting it into CodeCov (via our build pipeline). I ended up going down quite the Rabbit hole of different options and hitting a lot of brick walls along the way. I finally figured it out and got it working though so thought I’d share my findings and what I did in the end to get this working. TLDR – add this to your CI workflow in Github actions and adjust the settings as required. What is Code Coverage? In simple terms it gives you an idea of how many of your lines of code are covered by tests and therefore how confident you can be in making changes and releasing without breaking things. I’m not going to get into if this is a good idea, how accurate it is as a indication of the … Continue reading Enabling Code Coverage for Sitecore with Coverlet & Github Actions