0
私は.NET Coreプロジェクトでビジュアルスタジオ2015を使用しています。私はすべてのユニットテストを正しく設定しました。テストは正常に実行され、正常に実行されます。.netコアビジュアルスタジオのコードカバレッジの強調表示
唯一欠けているのは、コードカバレッジの強調表示です。それは私の.Net4.5アプリケーションで動作するために使用されました。何か不足していますか?
私は.NETコアでXUnitを使用しています。私はMicrosoft.CodeCoverage
を追加しましたが、それは何の違いもないようです。
これは私のproject.jsonです:
{
"version": "1.0.0-*",
"buildOptions": {
"debugType": "portable",
"copyToOutput": {
"include": [ "xunit.runner.json" ]
}
},
"dependencies": {
"System.Runtime.Serialization.Primitives": "4.1.1",
"xunit": "2.1.0",
"dotnet-test-xunit": "2.2.0-preview2-build1029",
"ClanService": { "target": "project" },
"Utilities": { "target": "project" },
"UnitTests.Configuration": { "target": "project" },
"Microsoft.CodeCoverage": "1.0.2"
},
"testRunner": "xunit",
"frameworks": {
"netcoreapp1.0": {
"dependencies": {
"Microsoft.NETCore.App": {
"type": "platform",
"version": "1.0.1"
}
},
"imports": [
"dotnet5.4",
"portable-net451+win8"
]
}
}
}
他の誰がこれですべての運を持ちますか?
Visual Studioのエディションは何ですか?エンタープライズエディションのみがコードカバレッジを強調表示します。 –
私はエンタープライズになっています – l3utterfly
'debugtype'ビルドオプションを' portable'から 'full'に変更すると、問題が解決します。 – nulltoken