【问题标题】:Pytest/Allure - How to generate testcase description?Pytest/Allure - 如何生成测试用例描述?
【发布时间】:2016-07-15 15:02:52
【问题描述】:

我对 Allure 还是很陌生,我正在尝试在我的报告中生成测试描述。查看其他 SO 问题和 pytest-allure-adaptor 文档,似乎没有这样做的选项。

我得到的最接近的是写这个:

def test_one():
   """
   This is the test description.
   """
   assert pass

这是非常有限的,因为它会自动折叠它。在 Allure 示例报告中,您可以看到他们可以使用标题,并且可能使用某种形式的降价。如何使用 pytest-allure-adaptor 做到这一点?

【问题讨论】:

    标签: python pytest allure adaptor


    【解决方案1】:

    目前您无法更改 PyTest Adaptor 中的描述类型。见问题https://github.com/allure-framework/allure-python/issues/93

    【讨论】:

    • 是的,谢谢,我在这里没有得到答案后提出了这个问题:)
    • 更新:对于那些感兴趣的人,这个功能已经实现。
    猜你喜欢
    • 1970-01-01
    • 2013-01-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-08-11
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多