Macos 在OSX上运行xunit.console.runner

Macos 在OSX上运行xunit.console.runner,macos,xunit,Macos,Xunit,对可移植类库(用于xamarin表单项目)进行xunit测试。我在visual studio中运行xunit测试,并在windows上使用xunit.runner.console,这些测试可以正常工作 我在OSX下尝试了同样的方法,得到了以下结果: mono xunit.runner.console.2.2.0/tools/xunit.console.exe bin/Debug/AppTests.dll -nunit reports/xunit_reports.xml xUnit.net Con

对可移植类库(用于xamarin表单项目)进行xunit测试。我在visual studio中运行xunit测试,并在windows上使用xunit.runner.console,这些测试可以正常工作

我在OSX下尝试了同样的方法,得到了以下结果:

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
现在bin/DebugAppTests.dll已存在


我能找出跑步者找不到的依赖项吗?或者有没有其他方法可以从命令行在osx上运行xunit测试?

而不是xunit runner使用dotnet


我用dotnet2.1.301检查了它,然后切换到nunit
dotnet test PATH_TO_TEST_PROJECT.csproj