我试图在mac终端中使用pytest运行并行测试,但是当我使用:
时py.test -n NUM
我收到以下错误:
Alexs-MacBook-Pro:sauceTests alex$ py.test -n 3
usage: py.test [options] [file_or_dir] [file_or_dir] [...]
py.test: error: unrecognized arguments: -n
inifile: None
rootdir: /Users/alex/PycharmProjects/sauceTests
谢谢!
答案 0 :(得分:4)
您需要为此安装插件:
pip install pytest-xdist