当前位置:网站首页>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
边栏推荐
- BGP experiment (1)
- 按键精灵脚本学习-关于天猫抢红包
- 二、并发、测试笔记 青训营笔记
- Summary of customer value model (RFM) technology for data analysis
- Wechat applet full stack development practice Chapter 3 Introduction and use of APIs commonly used in wechat applet development -- 3.10 tabbar component (I) how to open and use the default tabbar comp
- Leetcode sword finger offer brush questions - day 20
- I failed in the postgraduate entrance examination and couldn't get into the big factory. I feel like it's over
- 四、高性能 Go 语言发行版优化与落地实践 青训营笔记
- 科技云报道:从Robot到Cobot,人机共融正在开创一个时代
- After 95, the CV engineer posted the payroll and made up this. It's really fragrant
猜你喜欢

07_ Handout on the essence and practical skills of text measurement and geometric transformation

Model application of time series analysis - stock price prediction
![[semantic segmentation] - multi-scale attention](/img/2d/652681c08e484fe232b8fb91b7194e.jpg)
[semantic segmentation] - multi-scale attention

面试官:你都了解哪些开发模型?

Music | cat and mouse -- classic not only plot

记一个并发规则验证实现

Jenkins remote build project timeout problem

Is the test cycle compressed? Teach you 9 ways to deal with it

L'externalisation a duré trois ans.

Advanced practice of C language (high level) pointer
随机推荐
URP - shaders and materials - simple lit
resource 创建包方式
IO流 file
nacos
Idea add class annotation template and method template
Live online system source code, using valueanimator to achieve view zoom in and out animation effect
Stockage et pratique des données en langage C (haut niveau)
../ And/
解决could not find or load the Qt platform plugin “xcb“in ““.
Gslx680 touch screen driver source code analysis (gslx680. C)
按键精灵采集学习-矿药采集及跑图
Music | cat and mouse -- classic not only plot
Initial experience of teambiion network disk (Alibaba cloud network disk)
Outsourcing for three years, abandoned
MobaXterm
misc ez_usb
【leetcode】1020. Number of enclaves
JSON introduction and JS parsing JSON
vus.SSR在asynData函数中请求数据的注意事项
L'externalisation a duré trois ans.