当前位置:网站首页>pytest+allure+jenkins安装问题:pytest: error: unrecognized arguments: --alluredir
pytest+allure+jenkins安装问题:pytest: error: unrecognized arguments: --alluredir
2022-07-07 04:19:00 【ADDA_】
问题描述
在pycharm上可以正常生成报告,但是在jenkins上运行时一直报以下错误。
pytest: error: unrecognized arguments: --alluredir=reports
inifile: None
rootdir: D:\xxx
原因分析:
搜集了大量资料,总结一下:
1、安装allure-pytest与allure-python-commons的环境是虚拟环境,不是pytest运行的环境;
2、有多个python,导致出错。
解决方案:
针对1解决方案:
1、cmd 输入pip list查看安装情况,没有allure-pytest 执行pip install allure-pytest应该就可以了;
2、已经有安装的,需要重新安装allure-pytest与allure-python-commons,最好两个都卸载,不然有可能出问题,卸载命令pip uninstall allure-pytest、pip uninstall allure-python-commons,安装命令pip install allure-pytest、pip install allure-python-commons
边栏推荐
- 面试结束后,被面试官在朋友圈吐槽了......
- I failed in the postgraduate entrance examination and couldn't get into the big factory. I feel like it's over
- [webrtc] m98 Screen and Window Collection
- 三、高质量编程与性能调优实战 青训营笔记
- Mutual conversion between InputStream, int, shot, long and byte arrays
- After 95, Alibaba P7 published the payroll: it's really fragrant to make up this
- [webrtc] M98 screen and window acquisition
- Example of Pushlet using handle of Pushlet
- Convolutional neural network -- understanding of pooling
- 身边35岁程序员如何建立起技术护城河?
猜你喜欢

leetcode:105. 从前序与中序遍历序列构造二叉树

Tencent's one-day life

What are the positions of communication equipment manufacturers?

图解GPT3的工作原理

一、Go知识查缺补漏+实战课程笔记 | 青训营笔记

Outsourcing for three years, abandoned

1142_ SiCp learning notes_ Functions and processes created by functions_ Linear recursion and iteration

IO流 file

1141_ SiCp learning notes_ Functions abstracted as black boxes

3、 High quality programming and performance tuning practical youth training camp notes
随机推荐
解决:Could NOT find KF5 (missing: CoreAddons DBusAddons DocTools XmlGui)
Deep learning Flower Book + machine learning watermelon book electronic version I found
解决could not find or load the Qt platform plugin “xcb“in ““.
我理想的软件测试人员发展状态
BGP experiment (1)
记一个并发规则验证实现
二、并发、测试笔记 青训营笔记
Music | cat and mouse -- classic not only plot
Simple example of ros2 planning system plansys2
Advanced practice of C language (high level) pointer
Tianqing sends instructions to bypass the secondary verification
面试结束后,被面试官在朋友圈吐槽了......
身边35岁程序员如何建立起技术护城河?
【性能压测】如何做好性能压测?
[2022 CISCN]初赛 web题目复现
Mysql高低版本切换需要修改的配置5-8(此处以aicode为例)
Asemi rectifier bridge rs210 parameters, rs210 specifications, rs210 package
vus.SSR在asynData函数中请求数据的注意事项
leetcode:105. 从前序与中序遍历序列构造二叉树
【数学笔记】弧度