dotCover没有显示解决方案中的所有项目 [英] dotCover not showing all of the projects in a solution

查看:133
本文介绍了dotCover没有显示解决方案中的所有项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先让我说我对ReSharper和dotCover都是陌生的,并且我正在使用v10.0.2.

Let me start by saying I'm new to both ReSharper and dotCover and that I'm using v10.0.2 of both.

所附的屏幕截图显示了VS中的解决方案资源管理器以及一组测试的覆盖树.

The attached screenshot shows solution explorer in VS and the coverage tree for a set of tests.

每当我运行coverage时,它总是在coverage树中显示装配的相同子集.重要的是,显示的所有测试都是针对Services或Infrastructure程序集中的代码的,而覆盖树中均未显示.

Whenever I run coverage, it always shows the same subset of assemblies in the coverage tree. Importantly, all of the tests shown are for code in either the Services or Infrastructure assemblies, neither of which show in the coverage tree.

很明显,该产品没有正确执行操作,或者我没有正确执行操作.

Clearly, the product is not doing something right or I'm not.

  • 为什么覆盖树中仅显示某些装配?
  • 为什么我正在运行的测试未涵盖任何程序集 显示在覆盖树中?
  • 我如何使其正常工作?
  • Why are only some of the assemblies shown in the coverage tree?
  • Why aren't any of the assemblies covered by the tests I'm running shown in the coverage tree?
  • How do I make it work properly?

编辑 如果有什么不同,我正在使用xUnit并在ReSharper中安装了xUnit运行扩展,测试本身就可以正常运行.

EDIT If it makes any difference, I'm using xUnit and have the xUnit running extension installed in ReSharper and the tests themselves run just fine.

推荐答案

这是由于卷影复制-启用后,dotCover也会期望复制.pdb文件,而xunit执行的标准卷影复制不会执行此操作.如果您在单元测试"选项页面中禁用卷影副本,则可以正常工作.我认为xunit运行程序可以更新以解决此问题.

This is due to shadow copying - when enabled, dotCover expects .pdb files to be copied too, and the standard shadow copy that xunit performs doesn't do this. If you disable shadow copy in the Unit Testing options page, it'll work fine. I think the xunit runner can be updated to fix this.

描述正在发生的事情的YouTrack问题在这里: DCVR-7976

The YouTrack issue that describes what's going on is here: DCVR-7976

这篇关于dotCover没有显示解决方案中的所有项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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