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


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

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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM