Skip to content

Commit 2c623c7

Browse files
committed
chore: improve code coverage reporting
1 parent 2dc4036 commit 2c623c7

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

codecov.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ coverage:
1010
threshold: 0.1
1111
codecov:
1212
notify:
13-
after_n_builds: 10 # Wait for all 10 reports before updating the status
1413
wait_for_ci: yes
1514
comment:
1615
layout: "diff, files"

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ dependency-groups = ["test"]
157157
[tool.hatch.envs.test.env-vars]
158158
# Required to test with a pytest plugin; see https://pytest-cov.readthedocs.io/en/latest/plugins.html
159159
COV_CORE_SOURCE = "src"
160-
COV_CORE_CONFIG = ".coveragerc"
160+
COV_CORE_CONFIG = "pyproject.toml"
161161
COV_CORE_DATAFILE = ".coverage.eager"
162162

163163
[[tool.hatch.envs.test.matrix]]
@@ -175,8 +175,8 @@ matrix.deps.dependency-groups = [
175175
]
176176

177177
[tool.hatch.envs.test.scripts]
178-
run-coverage = "pytest --cov-config=pyproject.toml --cov=src --cov-append --cov-report xml --junitxml=junit.xml -o junit_family=legacy"
179-
run-coverage-html = "pytest --cov-config=pyproject.toml --cov=src --cov-append --cov-report html"
178+
run-coverage = "pytest --cov-config=pyproject.toml --cov=src --cov-report xml --junitxml=junit.xml -o junit_family=legacy"
179+
run-coverage-html = "pytest --cov-config=pyproject.toml --cov=src --cov-report html"
180180
run = "run-coverage --no-cov --ignore tests/benchmarks"
181181
run-verbose = "run-coverage --verbose"
182182
run-mypy = "mypy src"

0 commit comments

Comments
 (0)