mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-16 10:12:32 -05:00
Allow up to 10 tests to fail before stopping
This is a sensible compromise between 1 test and ALL THE TESTS. Uses the `maxfail` option as documented here: https://docs.pytest.org/en/latest/usage.html#stopping-after-the-first-or-n-failures
This commit is contained in:
@@ -31,5 +31,5 @@ flake8 .
|
|||||||
display_result $? 1 "Code style check"
|
display_result $? 1 "Code style check"
|
||||||
|
|
||||||
# run with four concurrent threads
|
# run with four concurrent threads
|
||||||
py.test --cov=app --cov-report=term-missing tests/ --junitxml=test_results.xml -n4 -v -x
|
py.test --cov=app --cov-report=term-missing tests/ --junitxml=test_results.xml -n4 -v --maxfail=10
|
||||||
display_result $? 2 "Unit tests"
|
display_result $? 2 "Unit tests"
|
||||||
|
|||||||
Reference in New Issue
Block a user