当前位置:网站首页>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
边栏推荐
- pytorch 参数初始化
- Blue Bridge Cup Netizen age (violence)
- 微博发布案例
- The metauniverse of the platofarm farm continues to expand, with Dao governance as the core
- Dynamics CRM server deployment - restore database prompt: the database is in use
- 直播平台源码,可折叠式菜单栏
- nacos
- C language (high-level) data storage + Practice
- 4、 High performance go language release optimization and landing practice youth training camp notes
- 在线直播系统源码,使用ValueAnimator实现view放大缩小动画效果
猜你喜欢

【斯坦福计网CS144项目】Lab4: TCPConnection

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

外包干了三年,废了...

【Liunx】进程控制和父子进程

聊聊异步编程的 7 种实现方式

Jenkins remote build project timeout problem

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

BGP experiment (1)

四、高性能 Go 语言发行版优化与落地实践 青训营笔记

nacos
随机推荐
What are the positions of communication equipment manufacturers?
【Liunx】进程控制和父子进程
记一个并发规则验证实现
[ANSYS] learning experience of APDL finite element analysis
【经验分享】如何为visio扩展云服务图标
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
测试周期被压缩?教你9个方法去应对
微信小程序中使用wx.showToast()进行界面交互
Stockage et pratique des données en langage C (haut niveau)
Leetcode-543. Diameter of Binary Tree
Tencent's one-day life
按键精灵脚本学习-关于天猫抢红包
Six methods of flattening arrays with JS
Determining the full type of a variable
buuctf misc USB
Detailed explanation of uboot image generation process of Hisilicon chip (hi3516dv300)
[2022 ACTF]web题目复现
【数学笔记】弧度
vus. Precautions for SSR requesting data in asyndata function
外包幹了三年,廢了...