How to measure Code Coverage in ASP.NET Core projects in Visual Studio?

后端 未结 7 1363
轮回少年
轮回少年 2020-12-30 05:03

I want to measure the Code Coverage of my XUnit-Tests in an ASP.NET Core application. The Tooling for .NET Core in Visual Studio 2015 is preview 2 and code coverage does not

7条回答
  •  攒了一身酷
    2020-12-30 05:29

    Add the NuGet package Microsoft.CodeCoverage 1.0.1 to your project.json.

    I am working on Template for Asp.NET and right now I am working on Unit Tests so I saw your post. You could see project/configuration here.

提交回复
热议问题