home · contact · privacy
Speed up testing with unittest-parallel.
[plomtask] / scripts / pre-commit
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