I am working on a .NET application, and have an entire deployment CI consisting of the following stages:

  1. Run unit tests (missing: need html report!)

  2. Build

  3. Deploy

  4. Run application tests (UI & API) (missing: need html coverage report!)

I have done this in the past for a couple of Linux-based tech stacks (e.g. Python, Scala, Ruby, etc.), but having a hard time doing this for C# / .NET applications.

Every tool I have seen when I Google for a solution demonstrates how to do this on the IDE. I don’t care about coverage as much on an IDE, I would like a Code Coverage report for Steps 1 & 4. Has anyone run into this? Does anyone have any suggestions on how to do this?

The goal: I am looking for a way to be able to generate code coverage HTML reports for tests on C# codebases via command line, so that my entire team has visibility into our test code coverage, instead of doing it locally via an IDE.

Thanks!



Source link https://www.reddit.com/r//comments/93q9tr/any__for__c_code/

LEAVE A REPLY

Please enter your comment!
Please enter your name here