当前位置:网站首页>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
边栏推荐
- 1、 Go knowledge check and remedy + practical course notes youth training camp notes
- 图解GPT3的工作原理
- 2022-07-06:以下go语言代码是否会panic?A:会;B:不会。 package main import “C“ func main() { var ch chan struct
- 抽絲剝繭C語言(高階)數據的儲存+練習
- vus. Precautions for SSR requesting data in asyndata function
- 《动手学深度学习》(四) -- 卷积神经网络 CNN
- Wx is used in wechat applet Showtoast() for interface interaction
- Rxjs - observable doesn't complete when an error occurs - rxjs - observable doesn't complete when an error occurs
- Route jump in wechat applet
- 【斯坦福计网CS144项目】Lab4: TCPConnection
猜你喜欢
My ideal software tester development status
通信设备商,到底有哪些岗位?
UWB learning 1
为什么要了解现货黄金走势?
Leetcode-206. Reverse Linked List
nacos
《动手学深度学习》(四) -- 卷积神经网络 CNN
我理想的软件测试人员发展状态
Calculus key and difficult points record part integral + trigonometric function integral
Detailed explanation of uboot image generation process of Hisilicon chip (hi3516dv300)
随机推荐
After 95, the CV engineer posted the payroll and made up this. It's really fragrant
测试周期被压缩?教你9个方法去应对
95后CV工程师晒出工资单,狠补了这个,真香...
Tongda injection 0day
Live online system source code, using valueanimator to achieve view zoom in and out animation effect
misc ez_usb
毕设-基于SSM大学生兼职平台系统
vus.SSR在asynData函数中请求数据的注意事项
How to * * labelimg
【斯坦福计网CS144项目】Lab3: TCPSender
Flutter riverpod is comprehensively and deeply analyzed. Why is it officially recommended?
CentOS7下安装PostgreSQL11数据库
[performance pressure test] how to do a good job of performance pressure test?
Solve could not find or load the QT platform plugin "xcb" in "
[webrtc] m98 Screen and Window Collection
身边35岁程序员如何建立起技术护城河?
【leetcode】1020. Number of enclaves
leetcode:105. Constructing binary trees from preorder and inorder traversal sequences
电商常规问题part1
JS get all date or time stamps between two time stamps