2
xUnitでユニットテストを実行するのにdotnet
を使用しています。xUnitとdotnet CLIを使用したStackoverflowException - どのテストですか?
私のユニットテストの1つで、私はStackoverflowを取得します。どのように私はを決定するのですかユニットテストはこれを引き起こしますか?
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
現在の結果:私は.NETの下でユニットテストを実行するためのxUnitを使用してい
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 StackOverflowException.
SUMMARY: Total: 1 targets, Passed: 0, Failed: 1.
コアと.NET 4.5.1(この例では現在.NET 4.5.1のみ使用)
PS:dotnet test --verbose
が存在しません