What can cause "No tests found in selected solution items" when I try to run unit tests?

What can cause "No tests found in selected solution items" when I try to run unit tests?

This works for my co-workers on our same project. They simply right-click on the Solution in VS's Solution Explorer, and select "Run Unit Tests". And they all run. They are there. But on my box, it says it doesn't find any tests. What can cause this?  Is there a setting somewhere?

Thanks for your help,
James Witt Hurst

C# WPF .NET 4 application
Microsoft Visual Studio 2010
Windows 7 x64

2 comments

Hello James,

Which unit test framework do you use? Does ReSharper show unit test icons
on the left-hand side gutter when you open one of the test classes in Visual
Studio editor? Thank you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

What can cause "No tests found in selected solution items" when I try
to run unit tests?

This works for my co-workers on our same project. They simply
right-click on the Solution in VS's Solution Explorer, and select "Run
Unit Tests". And they all run. They are there. But on my box, it says
it doesn't find any tests. What can cause this?  Is there a setting
somewhere?

Thanks for your help,
James Witt Hurst
C# WPF .NET 4 application
Microsoft Visual Studio 2010
Windows 7 x64
---
Original message URL:
http://devnet.jetbrains.net/message/5292369#5292369



0

I am having the same problem - when I right-click on a file with unit tests and try to run them, a dialog box, titled "ReSharper", pops up with the message "No tests found in file".

I created the test project from the VS2010 "Silverlight Unit Test Application" template.

In the left gutter of the source file is an icon next to the test class and each test method; the tooltip says, "MSTest class (click to run)">
If I click on the icon, the Unit Test Sessions window opens and list all the tests in the file, but they are crossed out; nothing runs.

My test class declaration:

    [TestClass]
    public class CloneNodeEntityTests : SilverlightTest


If I put the cursor in a test method, right-click, select "Run to cursor", the test runs as expected.

What's going on?  
Thanks for any advice...

VS2010 sp1

JetBrains ReSharper 5.1 C# Edition
Build 5.1.3000.12 on 2011-01-28T05:05:56

0

Please sign in to leave a comment.