Python Jenkins freestyle build run with allure报告
我正在为所有包含pytest标记“jenkins_run”的测试运行jenkins freestyle构建,在构建运行之后,我希望为我的测试提供诱惑报告。 我尝试的是:Python Jenkins freestyle build run with allure报告,python,jenkins,pytest,Python,Jenkins,Pytest,我正在为所有包含pytest标记“jenkins_run”的测试运行jenkins freestyle构建,在构建运行之后,我希望为我的测试提供诱惑报告。 我尝试的是: cd C:\Users\Administrator\Perforce\depot2\Cloud\TestAutomation\framework python -m pytest --alluredir="reportpath" -rf -m jenkins_run 发生的情况是,测试运行正常,但allure无法从指定路径中
cd C:\Users\Administrator\Perforce\depot2\Cloud\TestAutomation\framework
python -m pytest --alluredir="reportpath" -rf -m jenkins_run
发生的情况是,测试运行正常,但allure无法从指定路径中选择测试结果
(附上屏幕截图以供参考)
生成命令:
诱惑后构建操作
我也一直在努力解决这个问题。对我来说,问题在于“-alluredir”参数中的路径与allure插件中的一个不匹配 确保--alluredir的路径为:
--alluredir "path/of/jenkins/workspace/build_name/target/allure-result"