带有 xUnit 和 dotnet CLI 的 Stackoverflowexception - 哪个测试?
Stackoverflowexception with xUnit and dotnet CLI - which test?
我正在使用 dotnet
来 运行 我在 xUnit 中的单元测试。
在我的一个单元测试中,我得到了一个 Whosebug。我如何确定 哪个 单元测试导致此问题?
Project.json(相关部分):
"dependencies": {
"NLog": {
"target": "project"
},
"xunit": "2.2.0-beta2-build3300",
"dotnet-test-xunit": "2.2.0-preview2-build1029"
},
"testRunner": "xunit",
"frameworks": {
"net451": {
"dependencies": {
"Microsoft.NETCore.Platforms": "1.0.1"
}
}
}
运行:
> dotnet test
当前结果:
xUnit.net .NET CLI test runner (64-bit Desktop .NET win81-x64)
Discovering: NLog.UnitTests
Discovered: NLog.UnitTests
Starting: NLog.UnitTests
Process is terminated due to WhosebugException.
SUMMARY: Total: 1 targets, Passed: 0, Failed: 1.
我正在使用 xUnit 运行 在 .NET Core 和 .NET 4.5.1 下进行单元测试(目前示例中仅使用 .NET 4.5.1)
PS: dotnet test --verbose
不存在
通过 运行 在 Visual Studio 中的测试找到它。 GUI 清楚地表明了哪个测试是问题所在。
我正在使用 dotnet
来 运行 我在 xUnit 中的单元测试。
在我的一个单元测试中,我得到了一个 Whosebug。我如何确定 哪个 单元测试导致此问题?
Project.json(相关部分):
"dependencies": {
"NLog": {
"target": "project"
},
"xunit": "2.2.0-beta2-build3300",
"dotnet-test-xunit": "2.2.0-preview2-build1029"
},
"testRunner": "xunit",
"frameworks": {
"net451": {
"dependencies": {
"Microsoft.NETCore.Platforms": "1.0.1"
}
}
}
运行:
> dotnet test
当前结果:
xUnit.net .NET CLI test runner (64-bit Desktop .NET win81-x64)
Discovering: NLog.UnitTests
Discovered: NLog.UnitTests
Starting: NLog.UnitTests
Process is terminated due to WhosebugException.
SUMMARY: Total: 1 targets, Passed: 0, Failed: 1.
我正在使用 xUnit 运行 在 .NET Core 和 .NET 4.5.1 下进行单元测试(目前示例中仅使用 .NET 4.5.1)
PS: dotnet test --verbose
不存在
通过 运行 在 Visual Studio 中的测试找到它。 GUI 清楚地表明了哪个测试是问题所在。