Running xunit.console.runner on OSX

Run xunit tests for the portable class library (which is for the xamarin forms project). I run xunit tests in visual studio and using xunit.runner.console on windows and they work.

I try to do the same in OSX, and I get the following:

mono xunit.runner.console.2.2.0/tools/xunit.console.exe bin/Debug/AppTests.dll -nunit reports/xunit_reports.xml
xUnit.net Console Runner (32-bit .NET 4.0.30319.42000)
System.IO.FileNotFoundException: Could not load file or assembly 'AppTests' or one of its dependencies

Now bin / DebugAppTests.dll exists.

Is there any way to find out which dependencies a runner cannot find? Or is there another way to run xunit tests in osx from the command line?

+4
source share
1 answer

instead, the xunit runner uses dotnet https://xunit.imtqy.com/docs/getting-started/netcore/cmdline

dotnet test PATH_TO_TEST_PROJECT.csproj

I checked this with DotNet 2.1.301

0

Source: https://habr.com/ru/post/1671448/


All Articles