'TFS Test Filter Criteria syntax

I am struggling with excluding tests in automated TFS run.

In settings for Test filter criteria gave but the it doesn't seem to exclude the tests in that category ($(TestFilter))&(TestCategory!~) Also tried ($(TestFilter))&(TestCategory!=)

Any suggestions or examples on how to use the filter queries?

TIA



Solution 1:[1]

TFS Test Filter Criteria syntax

To exclude the tests in that category, you could set following test category filters in the VS test task:

TestCategory!=Manual

enter image description here

For more details about filtering pleace take a look here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Leo Liu-MSFT