在OSX上运行xunit.console.runner

问题描述 投票:4回答:1

曾经的xUnit用于便携式类库测试(这是一个xamarin形式的项目)。我在运行Visual Studio和Windows上使用xunit.runner.console的xUnit的测试,他们的工作。

我尝试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

现在斌/ DebugAppTests.dll存在。

我能以某种方式找出哪些依赖亚军找不到?还是有不同的方式来运行在命令行上OSX的xUnit的测试?

macos xunit
1个回答
1
投票

代替的xUnit亚军使用DOTNET https://xunit.github.io/docs/getting-started/netcore/cmdline

dotnet test PATH_TO_TEST_PROJECT.csproj

我用的dotnet 2.1.301检查它

最新问题
© www.soinside.com 2019 - 2024. All rights reserved.