From 5ab7bf978af86ad863156b8b15aa4fb26625e428 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Fri, 30 Aug 2019 22:37:16 +0200 Subject: [PATCH] implement pytest-xdist for the Docker tests This speeds up testing quite a bit --- Makefile | 2 +- requirements/base.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9e06a3f..0cdc9cf 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/requirements/base.txt b/requirements/base.txt index 072b89f..c8d0df5 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -8,4 +8,5 @@ django-filter pytest pytest-django pytest-cov +pytest-xdist mixer