Browse Source

parallelizing tests via pytest-xdist

Thomas Waldmann 8 năm trước cách đây
mục cha
commit
853cfb703b
2 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 1 0
      requirements.d/development.txt
  2. 1 1
      tox.ini

+ 1 - 0
requirements.d/development.txt

@@ -1,6 +1,7 @@
 virtualenv<14.0
 tox
 pytest
+pytest-xdist
 pytest-cov
 pytest-benchmark
 Cython

+ 1 - 1
tox.ini

@@ -12,7 +12,7 @@ deps =
      -rrequirements.d/development.txt
      -rrequirements.d/attic.txt
      -rrequirements.d/fuse.txt
-commands = py.test -rs --cov=borg --cov-config=../.coveragerc --benchmark-skip --pyargs {posargs:borg.testsuite}
+commands = py.test -n 8 -rs --cov=borg --cov-config=../.coveragerc --benchmark-skip --pyargs {posargs:borg.testsuite}
 # fakeroot -u needs some env vars:
 passenv = *