My thoughts on tech.
12 October 2016
As a developer, I need to take a good rest at night. In my line of work the only way to achieve it is using an integrated workflow pipeline, aka Source Code Management (SCM), Continuous Integration (CI) and Continuous Deployment (CD) with some tools in the middle.
For my new pet project (I will write about it once reach a good maturity level) I use this set of tools/technologies:
OpenCover is the most used framework to generate code coverage reports for .NET framework. It’s open source and well maintain (updated to work with .NET Core).
Codecov is a commercial project from Steve Peak, free for open source projects, and has powerful visualisations from the code coverage report. Can be used with a tonne of frameworks/languages, using OpenCover report format for the .NET framework. Is my preferred platform, since Steve has a great customer service support.
My integrated workflow pipeline is:
To manage the AppVeyor actions during the build and tests phases I just develop a PowerShell script to run the generate the code coverage report using OpenCover for the projects/classes under test:
https://gist.github.com/joaoasrosa/80a322d57ee6243374f2463f9a41d05f
The script instructions do the following:
The Powershell is integrated into appveyor.yml file, integrated into the project solution. The script runs in the ‘test_script’ step.
NOTE: at the time that you are reading this post the script can be different. If that is the case please leave a comment and I will update the Gist. :)