1条回答 默认 最新
Lemon2050 2023-05-03 00:17关注只能先试试看:
- 你的测试文件里也要: import allure。
- 确保已经安装了allure-pytest, 以及在环境变量中正确的配置了allure的bin文件夹。
- 执行命令: pytest tests/scripts/test.py --alluredir=./report
- pytest.ini的第一行改成: addopts = -sv --html=./report/test_report.html --clean-alluredir
- 执行命令: allure serve ./report/
最后最重要的是,先在 总览 里,找到你定义的 allure feature和story, 然后点进去。我看你的测试报告,确实少了些东西。
解决 无用评论 打赏 举报 编辑记录



