In Visual Studio Team Services (VSTS), when defining an assembly, I can filter specific tests for inclusion or exclusion when running tests.
Question How can I filter out full test classes? The example in the screenshot demonstrates how I filter tests based on their category.
An example of a test class that I would like to exclude:
[TestClass] // .NET 4.5 public class SampleTests { [TestMethod, TestCategory("Integration")] public void Test1() {} [TestMethod, TestCategory("Integration")] public void Test2() {} ... }
Current configuration to exclude my integration tests:

Trial : Filter criteria ClassName!=SampleTests do not work. It seems to be reserved for store apps only. Fairly good documentation here: MSDN Blog from Vikram Agrawal .
Reason for request . I have test classes that initialize a lot of data before starting any test and starting the cleanup job at the end. When all my tests are excluded through the above filter, classes are still initialized and cleaned up, which consume a lot of time and resources. I like to optimize this.
source share