需要安装库
另外失败重跑是语法 是--reruns n
报错-ERROR: usage: test.py [options] [file_or_dir] [file_or_dir] [...] test.py: error: unrecognized arguments: --self=contained-html inifile: E:\project\API\pytest.ini rootdir: E:\project\API
原文:https://www.cnblogs.com/gasx/p/14917102.html