2

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

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

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

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

4

1 回答 1

1

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

于 2016-05-11T10:06:22.207 回答