I suggest you ...

Pressing F5 on a test project should run tests in Test Explorer

Right now if you Start a unit test project through F5, you get the error dialog:

A project with an Output Type of Class Library cannot be started directly.
In order to debug this project, add an executable project to this solution which references the library project. Set the executable project as the startup project.

Finding Test Explorer isn't always obvious, based on how many votes are on this post: http://stackoverflow.com/questions/12594018/cannot-debug-a-unit-testing-project-in-visual-studio-2012

A nice solution would be to set the Start action on unit test projects to the same action as Debug Selected Tests, and open the Test Explorer if it was closed.
Taking this metaphor a little further, if you Start Without Debugging (Ctrl-F5), that should Run Selected Tests.

18 votes
Vote
Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
You have left! (?) (thinking…)
Carl Walsh shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

I want to personally thank you for taking the time to share this suggestion. Since the suggestion you raised has not gathered many votes, the Visual Studio IDE team is prioritizing other suggestions and closing it at this time.

If you would like us to reconsider this, please create a new suggestion. Again, thank you for sharing with us!

Mark Wilson-Thomas
Program Manager, Visual Studio IDE Team

3 comments

Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
Submitting...

Feedback and Knowledge Base