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)

 posted on 2021-05-10 15:54  zennpumpkin  阅读(56)  评论(0编辑  收藏  举报