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 6f84c41524e31d1aabd689c71dd37550e094ca0c..eec2db4ef487ef11f0fe2152cb24412bf6a2ebe1 100755
(executable)
--- a/
scripts/pre-commit
+++ b/
scripts/pre-commit
@@
-9,5
+9,8
@@
for dir in $(echo '.' 'plomtask' 'tests'); do
python3 -m pylint ${dir}/*.py
done
echo "Running unittest on tests/."
-python3 -m unittest tests/*.py
+set +e
+unittest-parallel -t . -s tests/ -p '*.py'
+# rm test_db:*.*
+set -e
exit 0