首页 > 其他 > 详细

pytest+allure结合执行命令出错(TypeError: required field "posonlyargs" missing from arguments)

时间:2020-07-03 12:12:41      阅读:391      评论:0      收藏:0      [点我收藏+]

如果出现的错误如下截图:

TypeError: required field "posonlyargs" missing from arguments

技术分享图片

 

 解决方法:把关于allure的包文件进行卸载

技术分享图片

1.可以在File-Setting-Project:Project Interpreter 把关于allure的包进行卸载

2.可以参考这个链接进行再安装:http://www.51testing.com/html/17/n-4464317.html

3.如果安装后,执行命令(例如:pytest -s -q --alluredir allure-xml)出现错误,可参考链接进行解决:https://www.pythonf.cn/read/21629

pytest+allure结合执行命令出错(TypeError: required field "posonlyargs" missing from arguments)

原文:https://www.cnblogs.com/lanyinhao/p/13229409.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!