mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Run tests in parallel on multi-core systems
Uses pytest-xdist to run tests on two cores simultaneously, speeding up test runs by nearly 40%.
This commit is contained in:
parent
fc8a3c719f
commit
1a6d66f395
3 changed files with 3 additions and 0 deletions
|
|
@ -51,6 +51,7 @@ pytest = "~5.3.5"
|
|||
pytest-cov = "^2.8"
|
||||
pytest-pythonpath = "^0.7.3"
|
||||
pytest-sugar = "^0.9.2"
|
||||
pytest-xdist = "^1.31"
|
||||
tox = "^3.13"
|
||||
flake8 = "^3.7"
|
||||
flake8-import-order = "^0.18.1"
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ Pygments==2.6.1
|
|||
mock
|
||||
pytest==5.3.5
|
||||
pytest-cov
|
||||
pytest-xdist
|
||||
|
||||
# Optional Packages
|
||||
Markdown >= 3.1
|
||||
|
|
|
|||
1
tox.ini
1
tox.ini
|
|
@ -27,6 +27,7 @@ commands =
|
|||
filterwarnings =
|
||||
default::DeprecationWarning
|
||||
error:.*:Warning:pelican
|
||||
addopts = -n 2
|
||||
|
||||
[flake8]
|
||||
application-import-names = pelican
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue