codecoverage

(โ˜… 124)

Microsoft Code Coverage tools documentation and samples

  • .editorconfig
  • .gitignore
  • CODE_OF_CONDUCT.md
  • LICENSE
  • README.md
  • SECURITY.md
  • SUPPORT.md

# Installation Guide

1. Get the code
git clone https://github.com/microsoft/codecoverage

Downloads the entire project code from GitHub to your computer.

cd codecoverage

Moves into the project folder you just downloaded.

2. .NET

Medium Recommended
Prerequisites
  • Git Needed to download the project code from GitHub.
  • .NET SDK The SDK required for the dotnet command.
dotnet new mstest -o mstests

Type this command into your terminal and run it.

dotnet test --collect "Code Coverage;Format=cobertura"

Type this command into your terminal and run it.

dotnet new console -o sample1

Type this command into your terminal and run it.

dotnet tool install -g dotnet-coverage

Type this command into your terminal and run it.

dotnet-coverage collect "dotnet run"

Builds the project and runs it immediately.

โœ… After dotnet run, check the message or address shown in the terminal.

Pulled directly from this repo's README.

// repository documentation