XunitとFluent Assertionsを使用してコードカバレッジをASP.NET Core上で実行しようとしています。しかし、私は本当に理解していないエラーメッセージが表示されています。OpenCoverでXUnitとFluentAssertionsを実行するとエラーメッセージが表示される
テストプロジェクトのマイproject.json:
{
"version": "1.0.0-*",
"testRunner": "xunit",
"debugType": "portable",
"dependencies": {
"xunit": "2.2.0-beta2-build3300",
"FluentAssertions": "4.15.0",
"dotnet-test-xunit": "2.2.0-preview2-build1029",
"ExpenseReporting": "1.0.0-*",
"Moq": "4.6.38-alpha"
},
"commands": {
"test": "xunit.runner.dnx"
},
"frameworks": {
"netcoreapp1.0": {
"dependencies": {
"Microsoft.NETCore.App": {
"type": "platform",
"version": "1.0.1"
}
}
}
}
}
OpenCoverのための私のコマンド:
OpenCover.Console.exe -target:"C:\Program Files\dotnet\dotnet.exe" -targetargs:"test "C:\Users\johndoe\Desktop\Application\ExpenseReporting.Test\project.json"" -output:coverage.xml -register:user -filter:"+[*]* -[xunit*]* -[*]*Migrations.*"
は、私は、エラーの多くを受けるが、すべては、この種のものであり:
An System.IO.DirectoryNotFoundException occured: Could not find a part of the path 'C:\projects\fluentassertions-vf06b\Src\FluentAssertions.NET40\Execution\MSTestFramwork.cs'.
ディレクトリが存在しないため、ディレクトリが見つからないことは明らかです。なぜそれがそこにアクセスしようとしているのだろうか?
あなたはこれを任意の解決策を見つけたことがありますか? – valorl