allure生成的报告可读性是最好、最直观的。目前学习积累的记录一下,仅供参考,
参考安装地址:
https://www.cnblogs.com/Zhan-W/p/13132397.html
参考代码案例:
https://www.cnblogs.com/Zhan-W/p/13141219.html
执行用例命令:
> pytest <测试目录> --alluredir <测试结果存放目录>
例如:
pytest D:\python-workpase\Allure_demo\case\test_case.py
–alluredir=reopore/allure_row_1
执行用例报告操作
方式一:
allure serve 目录
例如:
方式1.allure serve D:\python-workpase\Allure_demo\case\test_case.py
方式2.allure serve reopore/allure_row_1
方式二:
allure generate ../testoutput/result/ -o ../testoutput/report/ --clean
参考学习地址:点击这里看allure generate 方式
执行成功,便可看到用例样式如下: