DotCover仅显示单元测试源代码,而不显示生产代码 [英] DotCover shows only unit test source code not production code

查看:47
本文介绍了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.

这篇关于DotCover仅显示单元测试源代码,而不显示生产代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆