implement pytest-xdist for the Docker tests

This speeds up testing quite a bit
This commit is contained in:
Andreas Zweili 2019-08-30 22:37:16 +02:00
parent fde7d492d4
commit 5ab7bf978a
2 changed files with 2 additions and 1 deletions

View File

@ -6,7 +6,7 @@ docker:
docker-compose up
test:
docker-compose run web pytest network_inventory/ --nomigrations --cov=. --cov-report=html
docker-compose run web pytest -n 4 network_inventory/ --nomigrations --cov=. --cov-report=html
local:
python3 -m venv venv

View File

@ -8,4 +8,5 @@ django-filter
pytest
pytest-django
pytest-cov
pytest-xdist
mixer