Skip to content

Commit

Permalink
Use pytest-xdist to parallelize test execution
Browse files Browse the repository at this point in the history
  • Loading branch information
brechtm committed Oct 8, 2020
1 parent 18504f0 commit 664c791
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 34 deletions.
119 changes: 87 additions & 32 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ bump2version = "^1.0.0"
restview = "^2.9.2"
tox = "^3.15.2"
twine = "^1.15.0"
pytest = "^5.4.3"
pytest = "^6.1.1"
pytest-assume = "^2.3.3"
pytest-console-scripts = "^1.0.0"
tox-gh-actions = "^2.0.0"
wheel = "^0.35.1"
pytest-xdist = "^2.1.0"
2 changes: 1 addition & 1 deletion run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


if __name__ == '__main__':
command = ['py.test']
command = ['py.test', '-n', 'auto']
if os.environ.get('WITH_COVERAGE') == '1':
command.extend(['--cov=rinoh', '--cov-report='])
if os.environ.get('BASETEMP'):
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ python =
[base]
deps =
pytest
pytest-xdist
pytest-cov
coverage
pygments
Expand Down

0 comments on commit 664c791

Please sign in to comment.