From: Christian Heller Date: Thu, 30 May 2024 03:01:58 +0000 (+0200) Subject: Speed up testing with unittest-parallel. X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/static/%7B%7B%20web_path%20%7D%7D/%7B%7Bprefix%7D%7D/tasks?a=commitdiff_plain;h=a1c399aa563b6e457c33823c3a36e005e597d5ef;p=plomtask Speed up testing with unittest-parallel. --- 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