Provide named filters for sets of unit tests in the Unit Test Explorer, Test Manager, and Tfs
There needs to be a way of specifying to only run the unit tests that have some specified properties and sharing that criteria with the team and build server. This is not a “list” of tests. This is a query that returns a set of tests.
This could then be used by developer to tester to only run the set of tests they are interested in. That maybe based on namespace, test names, test categories, priority, attributes etc.
This would enable a number of scenarios. There is a start to this for TFS builds but it is limited to use by the build definition. This capability needs to be available in a more general fashion in the Unit Test Explorer, MTM and on TFS.
In theory this query could also be tagged to determine what test agents could run the test set or not run the set.
The product team is has started work to address this scenario.
Dan Larsen commented
Yes, somehow the filtering capabilities in the Test View are very limited. Once you have couple of thousend tests it's bit hard find the tests you want to run. It would be cool to be able query tests something like:
-Namespace: BLAA.BLAA.ONE AND !TestCategory: BLAA (Get all tests in BLAA.BLAA.ONE which not have test category BLAA).