HOW TO: Filter Tests by various criteria in VSTS Reports

A colleague of mine posed this question:

QUESTION:     How can the tests be prioritized so that it can be filtered in the Reports?


                       e.g. How many test failed?  vs How many “release critical” tests failed?


SOLUTION:   Yes - There is. The solution to this lies in using the "Test Description" attribute to surround each of the tests with the desired text string that you want to filter by, in the Reports. Once you do this, one can browse the cube and choose to filter the Test Results by this attribute. Then immediately one will know how many of Regression Tests failed, How many of Release critical Tests failed and so on.





[TestDescritpion("Regression Tests")]

public class TestForRegression : UnitTest {


// Implement your regression tests here










Skip to main content