【发布时间】:2020-01-24 17:54:07
【问题描述】:
我有一个在 Azure Devops 上运行的管道,它为 C# 解决方案构建和运行测试。我们将 MsTest 用于测试运行程序,并使用 TestCategory 属性对不同的测试进行分类。例如,我们可能有:
[TestClass]
[TestCategory("UnitTests")]
[TestCategory("SomeFeature"]
public class SomeTestsForSomeFeatureTests
{
Some test-code...
}
和
[TestClass]
[TestCategory("IntegrationTests")]
[TestCategory("SomeFeature"]
public class SomeIntegrationTestsForSomeFeatureTests
{
Some test-code...
}
有没有办法按 TestCategory 对 Azure Devops Pipelines 中的测试结果进行分组?
可以按 Test Run、Test File、Priorty、Owner 或 None 对测试结果进行分组,但我还没有找到按 TestCategory 分组的方法。
我知道可以设置管道以通过 TestCategory 运行测试,但这不是我所追求的。相反,我希望能够在我的解决方案中获得一部分测试结果。理想情况下,我希望能够链接到我选择的 TestCategory 中的测试结果。
【问题讨论】:
标签: azure-devops azure-pipelines