Skip to content
This repository was archived by the owner on Jan 27, 2021. It is now read-only.
This repository was archived by the owner on Jan 27, 2021. It is now read-only.

Display code coverage report on console on dotnet test --collect "Code Coverage" #8

@smadala

Description

@smadala

Description

  • dotnet test --collect "Code coverage" should show coverage info for each module on console

Steps to reproduce

Expected behavior

Something similar to below image
code-coverage-cli-report

Actual behavior

  • dotnet test just prints .coverage file path.
Test run for C:\Users\samadala\tmp\cc-mstest\bin\Debug\netcoreapp2.0\cc-mstest.dll(.NETCoreApp,Version=v2.0)
Microsoft (R) Test Execution Command Line Tool Version 15.8.0-preview-20180605-02
Copyright (c) Microsoft Corporation.  All rights reserved.

Starting test execution, please wait...

Attachments:
 C:\Users\samadala\tmp\cc-mstest\TestResults\ab987d22-bcc9-4748-a04d-071bbe9851c3\samadala_SAMADALA_2018-07-23.18_54_39.coverage

Total tests: 1. Passed: 1. Failed: 0. Skipped: 0.
Test Run Successful.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions