windows 下 pytest allure 配置
环境
- pytest(pip 安装)
- allure-pytest(pip 安装)
- allure 命令行工具安装
allure 命令行工具配置(把结果文件转成 html)
- 下载安装包
github 下载地址:https://github.com/allure-framework/allure2/releases
mac 系统可以使用brew install allure安装 - 解压
- 配置环境变量
使用步骤
- 命令行运行
pytest test_1.py --alluredir ./report/xml - 查看测试报告
allure serve ./report/xml - 生成 html 报告
allure generate ./report/xml -o ./report/html --clean
`

浙公网安备 33010602011771号