Reputation: 2196
I'm using visual studio 2015, with .NET Core project. I've setup all the unit test properly, the tests run fine, executes fine.
The only thing missing is code coverage highlighting. It used to work with my .Net4.5 application. Am I missing something?
I'm using XUnit with .NET Core. I've added Microsoft.CodeCoverage
, but that did not seem to have any difference.
This is my 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"
]
}
}
}
Anyone else having any luck with this?
Upvotes: 1
Views: 760
Reputation: 67679
As of .NET Core LTS 1.0.3, changing your debugtype
build option from portable
to full
should fix your issue.
Upvotes: 1