mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 08:16:51 -04: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:
@@ -35,5 +35,5 @@ npm test
|
|||||||
display_result $? 2 "Front end code style check"
|
display_result $? 2 "Front end code style check"
|
||||||
|
|
||||||
## Code coverage
|
## Code coverage
|
||||||
py.test -n4 -x --cov=app --cov-report=term-missing tests/ --junitxml=test_results.xml --strict
|
py.test -n4 --maxfail=10 --cov=app --cov-report=term-missing tests/ --junitxml=test_results.xml --strict
|
||||||
display_result $? 3 "Code coverage"
|
display_result $? 3 "Code coverage"
|
||||||
|
|||||||
Reference in New Issue
Block a user