LoginSignup
1
0

More than 3 years have passed since last update.

pytest-xdistの-nオプションについて

Last updated at Posted at 2018-03-01
pytest URL
xdistの-nオプションについて https://qiita.com/cielavenir/items/3f3319f3fa153c16c703
デコレータの作り方 https://qiita.com/cielavenir/items/542f7eaa612c6bb9ed90
デコレータに引数を渡す https://qiita.com/cielavenir/items/2c971ca4bc138c375d17
部分テストパラメータの値を使ってテストパラメータを生成する https://qiita.com/cielavenir/items/ce328313a9f0f498cbcb
pytestのfixtureを別の箇所でライブラリとして読み込みたい
(当該環境にはpytestが存在しない可能性がある)
https://qiita.com/cielavenir/items/8144774a6ac2eca2e2ce
  • https://pypi.python.org/pypi/pytest-xdist には、-nの説明とsubprocessの説明が別々に書かれているように見える。
  • 実際には:
    • -n NUM--dist=load --tx=NUM*popenの略である。
    • 上記ドキュメントにpy.test -d --tx 3*popen//python=python3.5と書かれている-d--dist=loadの略である。
  • つまり、実際には-nの説明はsubprocessの説明に包含されている。

終わりに

以上は--helpの出力に書かれていることである。--help、大事ですね。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0