我正在尝试自定义我的CATEGORIES部分,以便将失败的测试显示为诱惑报告中的失败测试。
我使用以下类别的JSON文件:
[{
"name": "Product defects",
"traceRegex": ".*org.openqa.selenium.NoSuchElementException.*",
"matchedStatuses": ["failed"]
}]
我想要产品缺陷类别下的所有缺陷(测试失败)。这可以实现吗?
这可能对你有用。它将所有失败的测试用例置于产品缺陷类别下。
[{
"name": "Product defects",
"matchedStatuses": ["failed"]
}]
您还可以尝试添加类别忽略。
[
{
"name": "Product defects",
"matchedStatuses": ["failed"]
},
{
"name": "Ignored tests",
"matchedStatuses": [ "skipped" ]
}
]