From 0ae7a21841365b497ceb350313925fd5fd77708a Mon Sep 17 00:00:00 2001 From: Fred Shone <26383933+fredshone@users.noreply.github.com> Date: Mon, 16 Sep 2024 14:32:47 +0100 Subject: [PATCH 1/2] adds coverage and failunder to pytest command --- pyproject.toml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 7c30ac0..470876b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,6 +18,7 @@ dependencies = [ 'pandas', 'matplotlib', 'pytest', + 'pytest-cov', 'dill', 'openpyxl', 'nrelpy', @@ -66,4 +67,10 @@ doc = [ ] [tool.setuptools.packages.find] -include = ['osier'] \ No newline at end of file +include = ['osier'] + +[tool.pytest.ini_options] +addopts = "--cov" + +[tool.coverage.report] +fail_under = 80 \ No newline at end of file From 1e43c919e2ac71f4f7ea0d74a5d004b0a18f18c3 Mon Sep 17 00:00:00 2001 From: Sam Dotson <44342873+samgdotson@users.noreply.github.com> Date: Mon, 23 Sep 2024 18:01:13 -0500 Subject: [PATCH 2/2] Apply suggestions from code review --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 470876b..2e6464a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -70,7 +70,7 @@ doc = [ include = ['osier'] [tool.pytest.ini_options] -addopts = "--cov" +addopts = "--cov=osier tests" [tool.coverage.report] -fail_under = 80 \ No newline at end of file +fail_under = 75 \ No newline at end of file