Skip to content

ikuosaito1989/.netcore-unittest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unit testing with .NET Core using dotnet test and xUnit

Alt Text

set coverage threshold to 100% with dotnet test

dotnet test /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=lcov /p:Threshold=100

convert to html report

How to install reportgenerator using .NET Global Tools

dotnet tool install -g dotnet-reportgenerator-globaltool

convert

reportgenerator -reports:./TestResults/coverage.info -targetdir:./TestResults/ start ./TestResults/index.htm

required nuget packages

coverlet.collector
coverlet.msbuild

About

Unit testing with .NET Core using dotnet test and xUnit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages