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:
Chris Hill-Scott
2018-02-14 13:25:41 +00:00
parent 9f275d2a0b
commit 14b5f9e778

View File

@@ -35,5 +35,5 @@ npm test
display_result $? 2 "Front end code style check"
## 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"