How can I force exclusion of certain assemblies from Code Coverage?

一笑奈何 提交于 2019-12-04 05:52:37

My guess would be that the . in Automapper.dll is causing the problem. Could you try using

<Exclude>
  <ModulePath>.*AutoMapper\.dll$</ModulePath>

For your case of excluding everything by default you should just use .*\.dll in the modulepaths exclusions.

This may seem obvious, but did you update your build definition to include the .runsettings file? It's one thing to have CodeCoverage enabled in your build, but you have to provide the path to the .runsettings file.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!