From 5264287ee63f335c1caf1a2a7b2a2ddc9578b553 Mon Sep 17 00:00:00 2001 From: "Michael J. Williams" Date: Tue, 16 Jun 2026 17:23:02 +0100 Subject: [PATCH 1/2] TST: fix pytest-cov settings in pyproject.toml --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index f0287e93..6f29533a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -80,7 +80,7 @@ version_scheme = "release-branch-semver" [tool.pytest.ini_options] addopts = [ "-ra", - "--cov=nessai", + "--cov=src/nessai", "--import-mode=importlib", ] testpaths = [ @@ -89,7 +89,7 @@ testpaths = [ [tool.coverage.run] source = [ - "nessai" + "src/nessai" ] [tool.coverage.report] From edb5473b8c237adc2dcc899ef05460224c64641b Mon Sep 17 00:00:00 2001 From: "Michael J. Williams" Date: Wed, 17 Jun 2026 17:29:21 +0100 Subject: [PATCH 2/2] TST: update pytest-cov and coverage config --- pyproject.toml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 6f29533a..2897cd18 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -80,16 +80,23 @@ version_scheme = "release-branch-semver" [tool.pytest.ini_options] addopts = [ "-ra", - "--cov=src/nessai", + "--cov-report=term-missing", + "--cov-report=xml:coverage.xml", "--import-mode=importlib", ] -testpaths = [ - "tests" -] +testpaths = ["tests"] [tool.coverage.run] +branch = true +source = [ + "src/nessai", + "tests", +] + +[tool.coverage.paths] source = [ - "src/nessai" + "src", + "*/site-packages", ] [tool.coverage.report]