how can I automatically run my tests after compilation?

.net, unit-testing, visual-studio

Solution

Think about it the other way around: instead of running unit tests each time you compile, simply get into the habit of running the unit tests often.

If you are using MSTest in Visual Studio, you can run all the unit tests as easy as Ctrl+R, A. When you do that, VS automatically compiles the code before running the tests.

Problem

Is there any easy way to automatically run my unit tests after a successful compilation?

Original source