20110324

One or more, directly or indirectly



Thank you, Visual Studio, for telling me that you can't run one or more tests. How about telling me which test, or tests, in the selected context could not be found? How about giving me an option to run the tests that can be found?

I must now, directly or indirectly, seek and find the unspecified that could not be found. ;)

Or, perhaps, and likely, this message means that there are no tests in the selected context. If so, one or more users (directly or indirectly) using Visual Studio are likely to be confused by this message.

2 comments:

  1. I ran into the same error today and go0gling it lead me to your post!! :|

    ReplyDelete
  2. I came across this today. Here is what I did to cause the problem:

    - Opened the solution. Added a new Coded UI Test item
    - Added a test method.
    - Re go the entire project from source control, thus making my project not recognize the test method. I observed that the [TestMethod] attribute was not colored the way it normally was.

    Of course it cannot find a test method in context for a project that does not know about the class. Ooops on me. Hope this is helpful.

    ReplyDelete