的Visual Studio 2013 code Coverage-二进制文件不被仪表 [英] Visual Studio 2013 Code Coverage- Binaries not being instrumented

查看:526
本文介绍了的Visual Studio 2013 code Coverage-二进制文件不被仪表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的使用,我笔试code块运行code覆盖。之前,它工作正常,但现在我得到的错误:

I am trying to run code coverage on my blocks of code using test that I have written. Before it was working fine but now I get the error:

空的结果产生:没有二进制文件检测。确保测试运行,加载所需的二进制文件,有匹配符号文件,并通过自定义设置没有被排除在外。欲了解更多信息,请参阅 http://go.microsoft.com/fwlink/?LinkID=253731

Empty results generated: No binaries were instrumented. Make sure the tests ran, required binaries were loaded, had matching symbol files, and were not excluded through custom settings. For more information see http://go.microsoft.com/fwlink/?LinkID=253731

我似乎无法找出如何解决这个问题。环顾四周我看到很多人都试图将他们的项目的根目录,并删除名为.suo(解决方案用户选项)文件存在,但并没有解决我的问题。

I cannot seem to figure out how to solve this. Looking around I see that many people have tried going to their project root directory and deleting the .suo (solution user options) file there, but that did not solve my problem.

我使用VS 2013终极

推荐答案

这是pretty的很难给出一个100%正确的答案在这里,所以我就告诉你我会做你的鞋子。

It's pretty difficult to give a 100% correct answer here so I'll just tell you what I would do in your shoes.

首先,创建一个全新的解决方案和项目,具有一定的的Hello World code,看看你可以得到code覆盖工作在那里面。如果一切正常,那么你知道这是什么毛病你原来的解决方案和/或项目,而不是你的VS配置。

First off, create a brand new solution and project, with some hello world code, and see if you can get the code coverage to work in that. If it works then you know it's something wrong with your original solution and/or projects, rather than your VS configuration.

要找出什么乱子是使用源代码控制来发现,当它停止工作的方法之一。尝试让一个老版本的codeBase的,看看是否code覆盖工作在该版本。如果它工作在该版本中,你可以不断地得到您的codeBase的,直到你不同的版本发现它不工作的版本。一旦你已经聚集在2个版本,其中它的工作原理于一体,失败的另一个,你然后马上就能检查两个版本之间的差异,找到它打破了原因。

One way to find out what's gone wrong would be to use source control to find when it stopped working. Try getting an old version of your codebase, and see if the code coverage is working in that version. If it works in that version then you could continually get different versions of your codebase until you find a version it doesn't work in. Once you've converged on 2 versions where it works in one and fails in another, you'll then be able to check the differences between the 2 versions to find the reason it broke.

这篇关于的Visual Studio 2013 code Coverage-二进制文件不被仪表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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