从 allure.qatools.ru 的首页来看,这些类别似乎已创建:
- 待处理
- 通过
- 已取消
- 损坏
- 失败
这如何映射到 pytest 类别?
我希望看到跳过、xpass、xfail和错误。
它们受支持吗? 如果是这样,到吸引力类别的映射是什么?
最佳答案
尚未明确记录,但 1.5.4
版本的 pytest-allure-adaptor 将 pytest 的状态转换为其 allure 对应项,如下所示:
已通过
=>已通过
失败
=>失败
跳过
=>取消
错误
=>已损坏
xfail
=>待处理
XPASS
=>FAILED
(因为 allure 没有特殊状态)
关于pytest - Allure 是否处理 pytest 中的 xfail、xpass、skip 和错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28439065/