当前位置:网站首页>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
边栏推荐
- Jenkins远程构建项目超时的问题
- 【经验分享】如何为visio扩展云服务图标
- 身边35岁程序员如何建立起技术护城河?
- 2022-07-06: will the following go language codes be panic? A: Meeting; B: No. package main import “C“ func main() { var ch chan struct
- After 95, the CV engineer posted the payroll and made up this. It's really fragrant
- 【webrtc】m98 screen和window采集
- [P2P] local packet capturing
- Interviewer: what development models do you know?
- [GUET-CTF2019]虚假的压缩包
- 三、高质量编程与性能调优实战 青训营笔记
猜你喜欢
![[Linux] process control and parent-child processes](/img/4c/89f87ee97f0f8e9033b9f0ef46a80d.png)
[Linux] process control and parent-child processes

Model application of time series analysis - stock price prediction

Tencent's one-day life

Resource create package method

JSON introduction and JS parsing JSON

【p2p】本地抓包

Jenkins远程构建项目超时的问题

@component(““)

Dynamics CRM server deployment - restore database prompt: the database is in use

抽絲剝繭C語言(高階)數據的儲存+練習
随机推荐
Initial experience of teambiion network disk (Alibaba cloud network disk)
1142_ SiCp learning notes_ Functions and processes created by functions_ Linear recursion and iteration
Make a bat file for cleaning system garbage
通信设备商,到底有哪些岗位?
Weibo publishing cases
[2022 CISCN]初赛 web题目复现
Detailed explanation of uboot image generation process of Hisilicon chip (hi3516dv300)
Write CPU yourself -- Chapter 9 -- learning notes
[ANSYS] learning experience of APDL finite element analysis
Implementing data dictionary with JSP custom tag
【Liunx】进程控制和父子进程
外包干了四年,废了...
gatk4中的interval是什么??
《动手学深度学习》(四) -- 卷积神经网络 CNN
The metauniverse of the platofarm farm continues to expand, with Dao governance as the core
Invalid table alias or column reference`xxx`
微信小程序中的路由跳转
A concurrent rule verification implementation
四、高性能 Go 语言发行版优化与落地实践 青训营笔记
Dynamics CRM server deployment - restore database prompt: the database is in use