Q:

Running unit tests after local build with Visual Studio 2010

Using Visual Studio 2010, is there a way to run all unit tests in a solution automatically after building the solution locally?

A:

for anyone still reading this, use this visual studio extension:
http://visualstudiogallery.msdn.microsoft.com/c074d3c6-71e2-4628-9e7c-7690e706aef4
It does exactly what you want, i.e. run your tests after a local build. Failed tests will show up as a build error in your error window... 
Why is this not out-of-the-box functionality @Microsoft? :)

A:

You could record a macro to do it. In the macro, you would run the build and then start the unit tests. Then you could just run the macro to do it all in one step. Check Tools->Macros for more details.
EDIT
You can also record keyboard shortcuts for the macros, and I think you can use existing key sequences, such as CTRL-SHIFT-B for build. So if you wanted to override the default behavior of CTRL-SHIFT-B, this would be one way.

