allure

1. download allure from git

2. config path (refer to: https://www.cnblogs.com/ycyzharry/p/10887922.html,https://www.jianshu.com/p/acb1f062a925)

3. validate the install works: allure --help

4. generate the report: pytest --alluredir ./reports 

5. open report in browser: allure serve reports (cd to the test directory first)

原文地址:https://www.cnblogs.com/lutong1989/p/14751405.html