本文介绍了在测试运行VS2010与错误MSTest的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行我的单元测试,所有测试都通过了,但不是测试运行成功或任何成功的消息,我在小酒吧,告诉我多少我测试通过得到测试运行错误,即使我所有的测试通过。

当我点击的文字,我带到一个页面,告诉我下面的两件事情:

I don't understand half of what it's complaining about. How do I get rid of these errors?

(And for reference: Booking.Web is an ASP.NET MVC 2 project, Booking.Web.Tests is a Test project, [...] is the full local path to the projects in my environment, in most of the cases above to the /bin/debug/ folder inside the Booking.Web project)

Update: As instructed, I looked for more info in Event Viewer. Here's what I found:

解决方案

First of all - you have Code Coverage enabled. You can read here about it. So there is no problems with Unit Tests. This is code coverage problem.

Second thing - this warning is ok - never mind about it.

Third thing - this error - this is the key problem.

There can be different problems - most common is that you should refference more assemblies. To find out what exactly should be loaded you must go to Event Viewer and look at at Windows Logs->Application

这篇关于在测试运行VS2010与错误MSTest的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-06 02:17