- 先安装依赖
pip install allure-pytest -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
- 运行pytest测试
pytest xxx.py --alluredir=result (可以指定路径)
会在当前目录生成一个result文件夹 - 在线看报告
allure serve result

pip install allure-pytest -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
pytest xxx.py --alluredir=result (可以指定路径)会在当前目录生成一个result文件夹
allure serve result