第26节课:pytest结合Allure操作

 1 # 第26节课:pytest结合Allure操作:
 2 '''
 3 1、Allure的环境搭建
 4     1.下载allure.zip
 5     2.解压allure.zip到一个文件目录中
 6     3.将改文件bin路径添加到环境变量path中
 7     4.pip install allure-pytest
 8     5.验证,直接cmd中输入allure即可
 9 2.pytest结合Allure操作
10     #执行pytest单元测试,生成Allure报告需要的数据存在/tmp目录
11     pytest -aq --alluredir=../report/tmp
12     #执行命令,生成测试报告
13     allure generate ../report/tem -o ../report/report --clean
14 '''
原文地址:https://www.cnblogs.com/66-liu/p/14092790.html