简体   繁体   中英

Pytest/Allure - How to generate testcase description?

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM