dotCover and xUnit not gathering coverage statistics in some environments

扶醉桌前 提交于 2019-12-04 16:43:45

With the help of one of the DotCover developers we were finally able to figure out the problem.

DotCover requires that the PDB files be available during analysis. By default the MSBuild <xunit...> task shadow copies the assemblies into another folder to run the tests. This apparently does not copy the PDB files, only the assemblies.

So to fix the problem we simply had to turn shadow copying off.

Original MSBuild Task

<xunit Assembly="$(TrunkDir)\Ipseity.Server.Events.UnitTests.dll" />

Fixed MSBuild Task

<xunit Assembly="$(TrunkDir)\Ipseity.Server.Events.UnitTests.dll" ShadowCopy="False" />
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!