From 6025f0e2533f1b5dc2e4d36a6881397402ea3d6d Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Thu, 1 Oct 2020 16:28:58 +0100 Subject: Add parallel testing This saves us a good deal of time, even allowing for process startup and general overhead. Before: real 6m39.103s user 1m9.561s sys 0m2.705s After: real 4m5.267s user 1m24.527s sys 0m3.828s This requires N databases, where N is the N of processors on the host. We need to update the docker configuration for this. Signed-off-by: Stephen Finucane --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tox.ini') diff --git a/tox.ini b/tox.ini index 0849b05..28f29f6 100644 --- a/tox.ini +++ b/tox.ini @@ -28,7 +28,7 @@ passenv = PW_TEST_DB_TYPE PW_TEST_DB_USER PW_TEST_DB_PASS PW_TEST_DB_HOST PW_TEST_DB_PORT commands = - python {toxinidir}/manage.py test --noinput {posargs:patchwork} + python {toxinidir}/manage.py test --noinput --parallel -- {posargs:patchwork} [testenv:bashate] deps = bashate -- cgit v1.2.3