如何在诱惑报告中显示失败的测试类别下的损坏测试

问题描述 投票:0回答:1

我正在尝试自定义我的CATEGORIES部分,以便将失败的测试显示为诱惑报告中的失败测试。

我使用以下类别的JSON文件:

[{
"name": "Product defects",
"traceRegex": ".*org.openqa.selenium.NoSuchElementException.*",
"matchedStatuses": ["failed"]
}]

我想要产品缺陷类别下的所有缺陷(测试失败)。这可以实现吗?

allure
1个回答
0
投票

这可能对你有用。它将所有失败的测试用例置于产品缺陷类别下。

[{
"name": "Product defects",
"matchedStatuses": ["failed"]
}]

您还可以尝试添加类别忽略。

[
 {
    "name": "Product defects",
    "matchedStatuses": ["failed"]
 },
 {
    "name": "Ignored tests",
    "matchedStatuses": [ "skipped" ]
 }
]
© www.soinside.com 2019 - 2024. All rights reserved.