Skip to content

pytest+allure生成本地报告打开html报告内容为空NaN% 1

问题

pytest+allure 生成本地报告打开 html 报告内容为空 NaN%

问题原因

命令错误,也有可能是由于 pytest 和 allure 版本不兼容导致

解决方法

使用命令:

pytest 文件.py --alluredir ./result
allure generate ./result -o ./report --clean

原文链接