Skip to content

Jenkins+allure构建项目后,提示:allure results does not exists

问题描述

  • jenkins+allure构建项目后,控制台输出 allure-results does not exist,allure报告中展示 NaN%

image|540x51 image|800x785

问题原因

  • 没有找到这个目录
  • jenkins的allure插件 是在当前workspace目录的子目录下找输出的report

比如在 执行命令中命令为

在项目XXX下
cd test  进入test包,用例在test包下
pytest test_xxx.py --alluredir ./result
在 Allure Report中 Path应该为 - tests/result image|704x443

保存后再运行即可

原文链接:https://ceshiren.com/t/topic/31778