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.
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!
Program Manager, Visual Studio IDE Team
I would vote for this if it was still open +3
Jean Gautier commented
This could also be enabled on a single test (aka "Run/Debug Selected Tests") to speed up "Compile/Debug" cycles for tests (also would enable the "Restart" debug session).
All these would greatly encourage devs to write unit tests!