当前位置:网站首页>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
边栏推荐
- 面试结束后,被面试官在朋友圈吐槽了......
- Mutual conversion between InputStream, int, shot, long and byte arrays
- IO stream file
- 1140_ SiCp learning notes_ Use Newton's method to solve the square root
- The configuration that needs to be modified when switching between high and low versions of MySQL 5-8 (take aicode as an example here)
- vus.SSR在asynData函数中请求数据的注意事项
- About some details of final, I have something to say - learn about final CSDN creation clock out from the memory model
- 抽絲剝繭C語言(高階)數據的儲存+練習
- After 95, Alibaba P7 published the payroll: it's really fragrant to make up this
- leetcode:105. 从前序与中序遍历序列构造二叉树
猜你喜欢
95后CV工程师晒出工资单,狠补了这个,真香...
Kbu1510-asemi power supply special 15A rectifier bridge kbu1510
4、 High performance go language release optimization and landing practice youth training camp notes
L'externalisation a duré trois ans.
四、高性能 Go 语言发行版优化与落地实践 青训营笔记
About some details of final, I have something to say - learn about final CSDN creation clock out from the memory model
IPv4 exercises
面试官:你都了解哪些开发模型?
numpy中dot函数使用与解析
Convolutional neural network -- understanding of pooling
随机推荐
Outlier detection technology of time series data
考研失败,卷不进大厂,感觉没戏了
【斯坦福计网CS144项目】Lab3: TCPSender
2022-07-06:以下go语言代码是否会panic?A:会;B:不会。 package main import “C“ func main() { var ch chan struct
Wechat applet full stack development practice Chapter 3 Introduction and use of APIs commonly used in wechat applet development -- 3.9 introduction to network interface (IX) extending the request3 met
Interviewer: what development models do you know?
Example of Pushlet using handle of Pushlet
[2022 CISCN]初赛 web题目复现
Tencent's one-day life
2、 Concurrent and test notes youth training camp notes
科技云报道:从Robot到Cobot,人机共融正在开创一个时代
Gslx680 touch screen driver source code analysis (gslx680. C)
【p2p】本地抓包
After the interview, the interviewer roast in the circle of friends
【leetcode】1020. Number of enclaves
Live broadcast platform source code, foldable menu bar
How to * * labelimg
MobaXterm
Kbu1510-asemi power supply special 15A rectifier bridge kbu1510
leetcode:105. Constructing binary trees from preorder and inorder traversal sequences