Click here to Skip to main content
15,880,891 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi all,
I have a .net core application that use MS test tools for unit testing and works fine in windows using the commands 'dotnet test' and displays the failed and passed results. But now I am stuck up for linux platform. How can I do the same in linux platform.Whether publishing it for linux platform solve my problem?

Thanks in advance

What I have tried:

<runtimeidentifiers>win10-x64;ubuntu.16.04-x64 in .csproj
Posted
Updated 13-Jul-17 0:22am

1 solution

I'd recommend switching over to xunit for your .NET Core unit tests.

You can run xunit tests directly from JetBrains cross-platform .NET IDE "Rider"[^]. Alternatively, you can run xunit tests from the command line using the following command:
$ dotnet xunit

See: Getting started with xUnit.net (.NET Core / ASP.NET Core) > xUnit.net[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900