Resharper 7.0 does not find unit tests

Hello,

Ive recently upgraded to R# 7.0 (now running latest build), and I often have problems with R# not being able to find unit tests in my test projects (VS 2010). Tests are written using MsTest syntax. To reproduce the problem on a small clean solution I did the following:

- Created a new solution;
- Added a couple of projects, one of them was test project;
- Built the solution.

Then I tried to run all tests in the solution but received a message saying that there are no tests found. I opened one of the test files, located a test class an tried to run tests from that context. It worked. However, when I tried to do the same for other test files, nothing happenned, and Test Explorer only shows tests from that particular file.

If I try to run tests using TestDriven.NET runner, everything works fine.

Does R# require .vsmdi file for MsTest? I don't have one, but it didn't seem to cause problems in the past.

Thanks in advance.

5 comments

Hello and thanks for the report. Could you please *.zip this small sample solution and attache it here (or send me it to the email Alex[dot]Berezoutsky[at]jetbrains[dot]com)? We'll try to figure out what's causing the issue.
Thanks in advance!

0

Thank for the reply, I've copied the failing solution to my public dropbox folder and sent you a mail with the link.

Vagif

0

Vagif,

Are you experiencing this problem with unit tests targeting WinRT/Metro? Cause I'm having the same problem.

0

No, I am not working with WinRT. It's a solution with regular .NET4 projects.

Vagif

0

Alex, did you find a solution for this?  I'm also experiencing this problem, although restarting Visual Studio has fixed it for me.

0

Please sign in to leave a comment.