home · contact · privacy
Speed up testing with unittest-parallel.
authorChristian Heller <c.heller@plomlompom.de>
Thu, 30 May 2024 03:01:58 +0000 (05:01 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 30 May 2024 03:01:58 +0000 (05:01 +0200)
requirements.txt
scripts/pre-commit

index cd1737d676f150166ee8f1cfdbb9e107665fb428..d0164cb4ad4c674a0ffc7b04c9e1d1c7ef5a4a3f 100644 (file)
@@ -1 +1,2 @@
 Jinja2==3.1.3
+unittest-parallel==1.6.1
index e4493a6f34eb279064d6e49e23ea02039f8f4e06..eec2db4ef487ef11f0fe2152cb24412bf6a2ebe1 100755 (executable)
@@ -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