基于pytest-allure测试报告安装

基于pytest-allure测试报告安装

运行环境:windows电脑

安装:pip install pytest-allure
运行测试用例:pytest test_demo.py --alluredir ./report
生成HTML测试报告:allure generate ./report -o ./reportHTML


备注:下面这个不安装其实也ok
如需安装allure-commandline:npm install -g allure-commandline --save-dev
如需安装allure2:allure2 release包地址


参考文献:
配置安装:main函数配置

发布了99 篇原创文章 · 获赞 43 · 访问量 16万+

猜你喜欢

转载自blog.csdn.net/mayanyun2013/article/details/104638292