home
·
contact
·
privacy
projects
/
plomtask
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Speed up testing with unittest-parallel.
[plomtask]
/
scripts
/
pre-commit
diff --git
a/scripts/pre-commit
b/scripts/pre-commit
index e4493a6f34eb279064d6e49e23ea02039f8f4e06..eec2db4ef487ef11f0fe2152cb24412bf6a2ebe1 100755
(executable)
--- 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