当前位置:网站首页>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
边栏推荐
- Live online system source code, using valueanimator to achieve view zoom in and out animation effect
- 1140_ SiCp learning notes_ Use Newton's method to solve the square root
- 二、并发、测试笔记 青训营笔记
- Differences between H5 architecture and native architecture
- Solve could not find or load the QT platform plugin "xcb" in "
- ASEMI整流桥RS210参数,RS210规格,RS210封装
- 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
- Six methods of flattening arrays with JS
- 【obs】win-capture需要winrt
猜你喜欢

Detailed explanation of uboot image generation process of Hisilicon chip (hi3516dv300)

@component(““)

L'externalisation a duré trois ans.

Iterable、Collection、List 的常见方法签名以及含义
![[UTCTF2020]file header](/img/e3/818e2d531a06ab90de189055f634ad.png)
[UTCTF2020]file header

记一个并发规则验证实现

I failed in the postgraduate entrance examination and couldn't get into the big factory. I feel like it's over

nacos

Stockage et pratique des données en langage C (haut niveau)
![[P2P] local packet capturing](/img/4e/e1b60e74bc4c44e453cc832283a1f4.png)
[P2P] local packet capturing
随机推荐
Convolutional neural network -- understanding of pooling
Determining the full type of a variable
解决could not find or load the Qt platform plugin “xcb“in ““.
Asemi rectifier bridge rs210 parameters, rs210 specifications, rs210 package
微信小程序中使用wx.showToast()进行界面交互
【p2p】本地抓包
【斯坦福计网CS144项目】Lab3: TCPSender
身边35岁程序员如何建立起技术护城河?
聊聊异步编程的 7 种实现方式
[webrtc] M98 screen and window acquisition
测试周期被压缩?教你9个方法去应对
[GUET-CTF2019]虚假的压缩包
../ And/
外包干了四年,废了...
Live broadcast platform source code, foldable menu bar
KBU1510-ASEMI电源专用15A整流桥KBU1510
Bi she - college student part-time platform system based on SSM
My ideal software tester development status
JS get all date or time stamps between two time stamps
Tianqing sends instructions to bypass the secondary verification