Skip to content

Commit b9716df

Browse files
committed
fix coverage for package
1 parent e83ec7f commit b9716df

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ build: ## Build the python package
2020

2121
tests: ${TESTS} ## Run tests for each package
2222
${TESTS}: %/tests:
23-
uv run pytest -v --cov=testcontainers.$* $*/tests
23+
uv run coverage run --parallel -m pytest -v $*/tests
2424

2525
coverage: ## Target to combine and report coverage.
2626
uv run coverage combine

pyproject.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ filterwarnings = [
285285
]
286286

287287
[tool.coverage.run]
288+
source = ["testcontainers.core"] # we only check coverage for core atm
288289
branch = true
289290
omit = ["oracle.py"]
290291

@@ -294,6 +295,13 @@ exclude_lines = [
294295
"raise NotImplementedError",
295296
]
296297

298+
[tool.coverage.paths]
299+
source = [
300+
"{projectroot}/core/",
301+
"*/site-packages",
302+
"*/dist-packages",
303+
]
304+
297305
[tool.ruff]
298306
target-version = "py39"
299307
line-length = 120

0 commit comments

Comments
 (0)