Pytest/Allure - How to generate testcase description?

萝らか妹 提交于 2019-12-11 01:49:38

问题


I'm still fairly new to Allure, and I'm trying to generate a test description in my reports. Looking at other SO questions and pytest-allure-adaptor documentation, there doesn't seem to be an option to do this.

The closest I've gotten was writing this:

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

And that's very limited, since it automatically collapses it. In the Allure example report, you can see that they can use headers and probably markdown of some sort. How do I do that with pytest-allure-adaptor?


回答1:


Currently you can't change the type of description in PyTest Adaptor. See the issue https://github.com/allure-framework/allure-python/issues/93



来源:https://stackoverflow.com/questions/36260895/pytest-allure-how-to-generate-testcase-description

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!