我正在使用 Allure 框架为 pytest 编写的测试生成报告。 在allure生成的报告中,它生成了趋势图,例如持续时间趋势、类别趋势、成功重试趋势。但是,当我检查每个测试的“历史记录”时,它没有显示过去运行的结果。
这就是我生成报告的方式:
pytest tests --alluredir=pytest-report
mv allure-previous-report/history pytest-report/history
allure generate pytest-report --clean -o allure-report
allure open allure-report -h localhost -p 8083
我希望看到测试的历史结果,但由于某种原因,
History
选项卡对于所有测试用例都是空的,无法真正理解我做错了什么。
同样的问题。
配置:
pytest==7.4.2
allure-pytest==2.13.2
selenium==4.13.0