pytest - Allure 是否处理 pytest 中的 xfail、xpass、skip 和错误?

标签 pytest allure

从 allure.qatools.ru 的首页来看,这些类别似乎已创建:

  • 待处理
  • 通过
  • 已取消
  • 损坏
  • 失败

这如何映射到 pytest 类别?
我希望看到跳过xpassxfail错误

它们受支持吗? 如果是这样,到吸引力类别的映射是什么?

最佳答案

尚未明确记录,但 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/

相关文章:

junit - Pytest:打印到控制台并在 junit 报告中捕获输出?

java - Allure 报告不会使用 mvn test -Darguments 生成

python - 在 allure-pytest 中获取动态测试描述

selenium - Allure 是否支持Bitbucket管道?

python - 使用pytest生成 Allure 报告

java - 测试失败时不会截取 Allure 报告截图

python-3.x - 如何将模拟对象传递给 pytest fixture

python - 用乏味的 __init__ 模拟一个类

python - 如果测试在覆盖范围内运行,是否可以让 py.test 跳过测试?

python - 使用 pytest 和 unittest runner 从两个终端运行测试套件,但仅显示 unittest runner 结果并执行一次