开发者

unit tests not available anymore

i work on a asp.net mvc2 web project and trying to create some tests. Now i am getting 开发者_如何转开发the following error:

no tests were run because no tests are loaded or the selected tests are disabled


Welcome to .NET ;)

Simplest thing first - Please try to first rebuild and then reload the solution. Next, please try refreshing your vsmdi file under Solutions Items. Please check the Test annotations are in place. One of these usually works


i solved it, i created a new testproject and this works:) thanks evyone.


maybe your test list editor is empty. if your test classes are covered with correct attributes like [testClass] and [testMethod] and test doesn't run and are out of the list, so your Project is not a TestProject.

Try to convert it to TestProject. 1. Open porject file outside of VS (with notePad) 2. Find (or add new) and replace ProjectTypeGuids string whith {3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}

3AC096D0-A1C2-E12C-1390-A8335801FDAB - is a guid of test project type. 3. Save it and try.

Source link

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜