当前位置:网站首页>Pytest+allure+jenkins environment -- completion of pit filling

Pytest+allure+jenkins environment -- completion of pit filling

2022-07-07 07:47:00 ADDA_

Project scenario :

Followed others' process once , Found that the environment has been experiencing problems , It's finally settled today !


Problem description

problem 1: Cannot be in jenkins Generate on allure temporary json The report

An error is as follows :

pytest: error: unrecognized arguments: --alluredir=reports
inifile: None
rootdir: D:\xxx

Solution :

Environmental problems , Not installed allure-pytest And allure-python-commons, Need to download again .

problem 2: see jenkins In the console , Report errors : Can't find XX The location of the package

An error is as follows :

ModuleNotFoundError: No module named 'et_xmlfile'

Cause analysis :

Some packages you installed into the virtual environment / other place , natural pip Uninstallation and reinstallation cannot solve the problem , You can use the following methods .

Solution :

Copy the error package to the corresponding location , There will be a path prompt when an error is reported .

原网站

版权声明
本文为[ADDA_]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207070419378211.html