diff --git a/pyproject.toml b/pyproject.toml index f0287e93..2897cd18 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -80,16 +80,23 @@ version_scheme = "release-branch-semver" [tool.pytest.ini_options] addopts = [ "-ra", - "--cov=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 = [ - "nessai" + "src", + "*/site-packages", ] [tool.coverage.report]