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
Copied from original issue: dotnet/cli#7612
The text was updated successfully, but these errors were encountered:
@a-h, @wli3 Code coverage is currently supported for Windows OS. On Windows OS, you can get Code Coverage for dotnet core test projects using vstest.console.exe.
As pointed out by @IvanAlekseev, support for Code Coverage in dotnet test for Windows OS is not yet there.
We are tracking this feature here : #981
Code Coverage is VS enterprise and windows only so far, current plan is to get the same level of support in dotnet test (windows + VS enterprise). Mac/linux support isn't in our immediate backlog. /cc @pvlakshm@sudiptadmsft to consider the feedback for prioritisation.
From @a-h on September 7, 2017 18:32
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:
#579 (comment)
I thought .NET Core was cross platform? I'm confused...
Environment data
dotnet --info
output:Copied from original issue: dotnet/cli#7612
The text was updated successfully, but these errors were encountered: