Test runner not running tests for a specific solution

Hi,

We are running R# 5.1.3000.12 with VS2010 and are experiencing a strange problem with the test runner. For at least one specific solution it refuses to run any tests, however the same projects are included in other solutions where they are running fine. All tests show up in the unit test sessions window as expected, it shows hourglasses while building and then the progressbar turns green with no report of number of tests run, succeeded and failed. All tests are marked with a grey dot indicating they have not been run. We are using MsTest, and the Visual Studio test runner executes the tests fine. I have tried to enable breaking on all CLR exceptions thrown, but it doesn't seem there are any, and nothing special is showing up in the output window. The solutions are are using different testsettings files, but there doesn't seem to be any interesting differences on them, and as mentioned the VS test runner executes the tests fine.

Any input on how to solve this?

Best regards,

Hendrik

3 comments

Hi,

Maybe I should be a little more specific on what I am hoping someone in here can help me get a little further with:

  • What could be making the test runner to behave like this? Like I said the same tests run in a different solution, so the problem is not at the code or project levels, but rather at solution level. I looked at the solution files at the testsettings files without noticing anything significant differences. Are there any other files influencing if tests are run or not?
  • I set the debugger to break on all exceptions thrown in the hope that it was some kind of exception stopping the test runner, but to no luck. Is there an option to trace the test runner to see why it decides not to run the test?

Best regards,

Hendrik

0

please make sure you have disabled to gather code coverage data.
I had a similar problem when I activitaded it.

0

Hi Sven,

Thanks for the answer, that helped. The funny thing is the two solutions used the same testsettings file, so one of them worked and the other one didn't!

Best regards,

Hendrik

0

Please sign in to leave a comment.