You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I thought .NET Core was cross platform? I'm confused...
Environment data
dotnet --info output:
.NET Command Line Tools (2.0.0)
Product Information:
Version: 2.0.0
Commit SHA-1 hash: cdcd1928c9
Runtime Environment:
OS Name: Mac OS X
OS Version: 10.12 OS Platform: Darwin
RID: osx.10.12-x64
Base Path: /usr/local/share/dotnet/sdk/2.0.0/
Microsoft .NET Core Shared Framework Host
Version : 2.0.0
Build : e8b8861ac7faf042c87a5c2f9f2d04c98b69f28d
The text was updated successfully, but these errors were encountered:
a-h
changed the title
Lack of clear documentation for running tests with code coverage
Lack of clear documentation for running tests with code coverage on MacOS
Sep 7, 2017
I'm confused as to how to run unit tests with code coverage on Linux and OSX for .NET Core 2.0 projects using the built-in tools.
Steps to reproduce
dotnet new xunit
dotnet test
dotnet test --help | grep cover
dotnet vstest
or something.dotnet add package Microsoft.CodeCoverage
dotnet vstest ./bin/Debug/netcoreapp2.0/Updater.Tests.dll
dotnet vstest --collect:"Code Coverage" --framework:".NETCoreApp,Version=v2.0" ./bin/Debug/netcoreapp2.0/Updater.Tests.dll
Expected behavior
dotnet test --cover
and code coverage files would be output, and a summary table of results printed to the console.Actual behavior
Error message shown:
Then I find this comment:
microsoft/vstest#579 (comment)
I thought .NET Core was cross platform? I'm confused...
Environment data
dotnet --info
output:The text was updated successfully, but these errors were encountered: