From a1c399aa563b6e457c33823c3a36e005e597d5ef Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Thu, 30 May 2024 05:01:58 +0200 Subject: [PATCH] Speed up testing with unittest-parallel. --- requirements.txt | 1 + scripts/pre-commit | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index cd1737d..d0164cb 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1,2 @@ Jinja2==3.1.3 +unittest-parallel==1.6.1 diff --git a/scripts/pre-commit b/scripts/pre-commit index e4493a6..eec2db4 100755 --- a/scripts/pre-commit +++ b/scripts/pre-commit @@ -10,7 +10,7 @@ for dir in $(echo '.' 'plomtask' 'tests'); do done echo "Running unittest on tests/." set +e -python3 -m unittest tests/*.py -rm test_db:*.* +unittest-parallel -t . -s tests/ -p '*.py' +# rm test_db:*.* set -e exit 0 -- 2.30.2