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

posted @ 2020-07-03 11:32  小L小  阅读(1632)  评论(0编辑  收藏  举报