Merge pull request #1663 from alphagov/fail-fast

Stop pytest on 10th failing test
This commit is contained in:
Chris Hill-Scott
2018-02-15 09:34:42 +00:00
committed by GitHub

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 -n 4 -v
py.test --cov=app --cov-report=term-missing tests/ --junitxml=test_results.xml -n4 -v --maxfail=10
display_result $? 2 "Unit tests"