Jump to content

Unit Testing/xUnit.net/View Test Coverage

From Wikiversity

View test coverage.

  1. Run the following command and observe the results:
    • dotnet test --coverage:"Code Coverage"
  2. Add tests and then repeat the command above to achieve 100% coverage.