pytest allure
安装使用
1、安装allure
下载allure包
解压
配置环境变量:打开vim ~/.bash_profile,配置环境变量
source ~/.bash_profile
allure --version
2、安装allure-pytest
pip install allure-pytest
3、使用
执行:python do_test.py


4、allure注解说明

参考:https://zhuanlan.zhihu.com/p/555114726
问题
1、执行报错:error: unrecognized arguments: --alluredir
1、pip list | grep allure-pytest 确认是否已成功安装allure-pytest插件
2、检查allure-pytest版本与python版本是否兼容
2、执行报错:Allure comond not found
https://blog.csdn.net/qq_45689860/article/details/127811544