2016-03-28 63 views
2

我对于Allure来说还是比较新的,我试图在我的报告中生成测试说明。看看其他SO问题和pytest-aure-adapter适配器文档,似乎没有做到这一点的选项。Pytest /倾城 - 如何生成测试用例描述?

我已经得到的最接近的是写这样的:

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

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

回答