2017-06-08 8 views
1

に動作していない:py.testと-nオプションでパラレルテストを実行しようとすると、私はマック端子に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 

ありがとうございます!

答えて

4

あなたはそのためのプラグインをインストールする必要があります。

pip install pytest-xdist 
関連する問題