I have a pipeline running on Azure Devops that builds and runs tests for a C# solution. We use MsTest for test-runner, and we use the TestCategory attribute to categorize different tests. For example, we might have:
[TestClass]
[TestCategory("UnitTests")]
[TestCategory("SomeFeature"]
public class SomeTestsForSomeFeatureTests
{
Some test-code...
}
and
[TestClass]
[TestCategory("IntegrationTests")]
[TestCategory("SomeFeature"]
public class SomeIntegrationTestsForSomeFeatureTests
{
Some test-code...
}
Is there a way to group the test-results in Azure Devops Pipelines by TestCategory?
It is possible to group the test-results by Test Run, Test File, Priorty, Owner or None, but I have not found a way to group by the TestCategory.
I know that it is possible to setup the pipeline to run tests by TestCategory, but this is not what I am after. Rather, I would like to be able to get a subset of the test-results in my solution. Ideally, I would like to be able to link to the results of the tests in the TestCategory of my choice.