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

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