From 773ed7f098a78d86a231daf7b09d1889d53a2cf2 Mon Sep 17 00:00:00 2001 From: AlexVCaron Date: Fri, 16 Feb 2024 16:14:25 -0500 Subject: [PATCH 1/3] update coveragerc --- .coveragerc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.coveragerc b/.coveragerc index 9f2015df3..21b501e1c 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,11 +1,11 @@ [run] branch = True concurrency = multiprocessing -data_file = .test_reports/.coverage -relative_files = True -source_pkgs = +data_file = .coverage +source_pkgs = scilpy scripts +relative_files = True omit = scripts/tests/*.py scilpy/tests/**/*.py @@ -16,6 +16,11 @@ omit = [report] skip_empty = True +skip_covered = True [html] title = Scilpy Coverage Report +directory = .test_reports/coverage.html + +[xml] +output = .test_reports/coverage.xml From d56551ee7f62033f2f9eae7209201480fe270716 Mon Sep 17 00:00:00 2001 From: AlexVCaron Date: Fri, 16 Feb 2024 16:14:56 -0500 Subject: [PATCH 2/3] simplify pytest.ini --- pytest.ini | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pytest.ini b/pytest.ini index 5a7cbe175..b4b9224d1 100644 --- a/pytest.ini +++ b/pytest.ini @@ -33,8 +33,7 @@ junit_logging = out-err addopts = --html=.test_reports/pytest.html - --cov-report=html:.test_reports/coverage.html --junit-xml=.test_reports/junit.xml - --cov-report=xml:.test_reports/coverage.xml - --cov=scilpy/ - --cov=scripts/ + --cov + --cov-report html + --cov-report xml From 543d1c264b08b5567bf3d82aa5ddd65435706e03 Mon Sep 17 00:00:00 2001 From: AlexVCaron Date: Fri, 16 Feb 2024 16:15:37 -0500 Subject: [PATCH 3/3] tests should now run --- .github/workflows/test.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ff4f3bf28..ded929612 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -62,7 +62,6 @@ jobs: flags: unittests name: scilpy-unittests-${{ github.run_id }} verbose: true - directory: .test_reports/ fail_ci_if_error: true plugin: pycoverage