DotCover仅显示单元测试源代码,而不显示生产代码

DotCover仅显示单元测试源代码,而不显示生产代码

问题描述:

我开始使用dotCover.我有一组Debug编译的dll +他们的pdb.然后,我创建了一个测试项目并对其执行了重新共享以查看覆盖范围.我得到的只是单元测试项目的覆盖范围,而不是整个覆盖范围:

I'm starting to use dotCover. I have a set of Debug compiled dlls + their pdbs. Then I've created a test project and executed resharper on it to see the coverage. What I'm getting is the coverage only of the unit test project instead of the whole coverage:

我希望在coverage选项卡上找到从单元测试中引用的dll及其覆盖范围.我对吗?也许我错过了什么,或者我做错了什么?

I expected to find on the coverage tab the dlls referenced from my unit tests and their coverage. Am i right? Maybe I'm missing something or am I doing something wrong?

您可以尝试取消选中与当前项目结构匹配覆盖率结果"按钮,否则dotCover仅显示当前解决方案中测试的覆盖率结果.

You can try to uncheck the "Match coverage results with current project structure" button, otherwise dotCover shows coverage results for tests only from your current solution.