How to exclude code from code coverage

added by DotNetKicks
2/21/2019 8:59:23 AM

2 Kicks, 459 Views

Recently I blogged about how to generate nice code coverage reports for ASP.NET Core and .NET Core applications. This blog post focuses on how to leave out from code coverage all code that will not be covered with unit tests and get numbers shown on code coverage reports correct.