mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-15 09:42:38 -05:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user