0
点赞
收藏
分享

微信扫一扫

生成allure测试报告:

棒锤_45f2 2022-12-23 阅读 117

下载:pip install allure-pytest
下载jdk

配置Java环境

配置pytest.ini

[pytest]
addopts = -s -v --html=report/report.html --alluredir ./report/result
testpaths = ./scripts
python_files = test_case.py
python_classes = Test*
python_functions = test_*
xfail_strict = true

cmd命令行执行:

allure generate report/result -o report/allure_html 

生成allure测试报告:_python

 页面效果如下:

生成allure测试报告:_Test_02

清空掉之前的并生成新的测试报告:

allure generate report/result -o report/allure_html --clean

生成allure测试报告:_python_03



举报

相关推荐

0 条评论