From 14b5f9e77883c96079b2e438cdf64bf0117d9939 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Wed, 14 Feb 2018 13:25:41 +0000 Subject: [PATCH] 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 --- scripts/run_tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/run_tests.sh b/scripts/run_tests.sh index 0cad292ee..52a884a3d 100755 --- a/scripts/run_tests.sh +++ b/scripts/run_tests.sh @@ -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"