Visual Studio 2012 – Define Tests Run After Build

visual studio

Visual Studio 2012 has a new feature where it automatically runs your unit tests after every build.

I would like to use this feature, but I have a number of tests that should not be run after every build (long running performance tests, etc).

Is there a way to define which categories are run automatically? Or some other way to define which test should be run?

Best Answer

A colleague of mine wanted to know the answer to this question also.

He asked Cathy Sullivan (A Microsoft Visual Studio Program manager) on Twitter whether it was possible.

Cathy came back and said that unfortunately, it's not possible, however as part of the same conversation, Joshua Weber (another MS VS Program Manager) stated that Visual Studio's "Run Tests On Build" will honor any current filter you've applied within the search box.

(Image grab of twitter conversation)