Visual Studio 2010 代码覆盖率 - 找不到由检测实用程序创建的备份文件 [英] Visual Studio 2010 Code Coverage - Cannot find the back up file, created by instrumentation utility

查看:31
本文介绍了Visual Studio 2010 代码覆盖率 - 找不到由检测实用程序创建的备份文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 VS 2010 中运行代码覆盖率,但遇到以下错误.不生成覆盖信息.

I am trying to run code coverage in VS 2010 and I am running into the following error. No coverage information is generated.

代码覆盖就地检测:无法完全备份二进制MyProject.dll".找不到由检测实用程序创建的备份文件:MyProject.dll.orig".

Code coverage in-place instrumentation: Cannot fully backup the binary 'MyProject.dll'. Cannot find the back up file, created by instrumentation utility: 'MyProject.dll.orig'.

推荐答案

检查哪些工件被选择用于测试运行配置的代码覆盖率 - 它隐藏得很好:

Check which artifacts are selected for code coverage for your test run config - it's quite well hidden:

  • 在菜单下:测试 -> 编辑测试设置选择您的活动测试设置
  • 测试设置对话框中,选择数据和诊断标签
  • 选择代码覆盖率项,然后点击上面的配置按钮
  • Under menu: Test -> Edit Test Settings select your active test setting
  • In the Test settings Dialog select the Data and Diagnostics tab
  • Select the Code Coverage item, and then hit the Configure button above

  • 这会打开代码覆盖率详细信息窗口.检查给您带来问题的 MyProject.dll:dll 是否存在?它是调试版本吗?签了吗?您是否有任何影响该项目的测试?
  • This opens up the Code Coverage Detail window. Check the MyProject.dll that is giving you problems: Does the dll exist? Is it a debug build? Is it signed? Do you have any tests which hits this project?

这篇关于Visual Studio 2010 代码覆盖率 - 找不到由检测实用程序创建的备份文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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