From f871fc4b5f6dbbeda9a84e6e4dac1d9e31ecf912 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Mon, 24 Feb 2020 17:26:09 +0000 Subject: [PATCH 1/2] Remove code coverage report MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We don’t use it any more as of https://github.com/alphagov/notifications-admin/pull/3228 --- scripts/run_tests.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/run_tests.sh b/scripts/run_tests.sh index 4d5afe776..aff3342d7 100755 --- a/scripts/run_tests.sh +++ b/scripts/run_tests.sh @@ -36,6 +36,5 @@ display_result $? 2 "Import order check" npm test display_result $? 3 "Javascript tests have" -## Code coverage -py.test -n auto --maxfail=10 --cov=app --cov-report=term-missing tests/ --strict -p no:warnings -display_result $? 4 "Code coverage" +py.test -n auto --maxfail=10 tests/ --strict +display_result $? 4 "Unit tests have" From 4d43354473c650f0194a41ffb48c550ce2a5fab4 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Mon, 24 Feb 2020 17:28:29 +0000 Subject: [PATCH 2/2] Remove strict argument to pytest We set it in pytest.ini anyway. --- requirements_for_test.txt | 1 - scripts/run_tests.sh | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/requirements_for_test.txt b/requirements_for_test.txt index 22260cfe2..bc6a0b2b9 100644 --- a/requirements_for_test.txt +++ b/requirements_for_test.txt @@ -2,7 +2,6 @@ isort==4.3.21 pytest==5.3.2 pytest-env==0.6.2 -pytest-cov==2.8.1 pytest-mock==1.11.2 pytest-xdist==1.31.0 beautifulsoup4==4.8.1 diff --git a/scripts/run_tests.sh b/scripts/run_tests.sh index aff3342d7..c676b6052 100755 --- a/scripts/run_tests.sh +++ b/scripts/run_tests.sh @@ -36,5 +36,5 @@ display_result $? 2 "Import order check" npm test display_result $? 3 "Javascript tests have" -py.test -n auto --maxfail=10 tests/ --strict +py.test -n auto --maxfail=10 tests/ display_result $? 4 "Unit tests have"