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:27:06 +00:00
parent e87ed0f68a
commit faa76755c3

View File

@@ -31,5 +31,5 @@ flake8 .
display_result $? 1 "Code style check"
# 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"