I’m using MSTest and most of my unit tests have no TestCategory attribute, but I want to put a few tests into a “Slow” category. Then I want to be able to easily run all the tests that have no category assigned.
When I go to Test View, I can filter by Test Categories, but I can’t put in a keyword of empty. I can easily find my “Slow” ones, but how to I find my non-Slow ones? I’m trying to avoid putting a test category on all my tests.
I guess it’s not the end of the world if I have to… a search and replace should get them all, but if there’s a way to find the non-categorized, I would like to know.
In the test list editor, add Test Categories as a column, group by None, and sort on Test Categories. Tests with no categories will be at the top. Unfortunately, you can’t group by Test Category.