run tests in multiple threads at once

previously we didn't do this because the tests all used the same DB
(test_notifications_api), however @minglis shared a snippet that simply
creates one test db per thread.
This commit is contained in:
Leo Hemsted
2017-08-23 14:46:40 +01:00
parent 4f0443041d
commit 3d4dbaa632
3 changed files with 31 additions and 5 deletions

View File

@@ -30,5 +30,6 @@ fi
pycodestyle .
display_result $? 1 "Code style check"
py.test --cov=app --cov-report=term-missing tests/ --junitxml=test_results.xml
# run with six concurrent threads
py.test --cov=app --cov-report=term-missing tests/ --junitxml=test_results.xml -n 6
display_result $? 2 "Unit tests"