Visual Studio 2010 does not discover new unit tests

Posted by driis on Stack Overflow See other posts from Stack Overflow or by driis
Published on 2010-04-15T13:04:33Z Indexed on 2010/04/16 8:03 UTC
Read the original article Hit count: 377

I am writing some unit tests in Visual Studio 2010. I can run all tests by using "Run all Tests in Current Context".

However, if I write a new unit test, it does not get picked up by the environment - in other words, I am not able to find it in Test List Editor, by running all tests, or anywhere else. If I unload the project and then reload it; the new test is available to run.

When I am adding a unit test, I simply add a new method to an already existing TestClass and decorating it with [TestMethod] attribute - nothing fancy.

What might be causing this behaviour, and how do I make it work ?

© Stack Overflow or respective owner

Related posts about mstest

Related posts about unit-test