New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while running dotnet test --collect:coverage #902

harshjain2 opened this Issue Jun 30, 2017 · 1 comment


None yet
2 participants

harshjain2 commented Jun 30, 2017


Errors are observed while using --collect:coverage.

Error messages :
1>Done building target "ShowCallOfVSTestTaskWithParameter" in project "UnitTestProject1.csproj".
Done executing task "CallTarget".
Using "Microsoft.TestPlatform.Build.Tasks.VSTestTask" task from assembly "C:\Program Files\dotnet\sdk\2.0.0-preview1-005977\Microsoft.TestPlatform.Build.dll".
Task "Microsoft.TestPlatform.Build.Tasks.VSTestTask"

2> dotnet exec needs a managed .dll or .exe extension. The application specified was 'C:\Program'

Steps to reproduce

Run `dotnet test --collect:coverage

Expected behavior

Test should run with a message Could not find data collector "coverage"

Actual behavior

Error message is logged and test run fails.

Reported by @Alxandr @dnelly here

@harshjain2 harshjain2 self-assigned this Jun 30, 2017

@codito codito added this to the 15.5 milestone Jul 7, 2017


This comment has been minimized.


codito commented Jul 7, 2017

Triaging this for 15.5 since code coverage experience is incomplete without this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment