Skip to content

Commit 6ebd24b

Browse files
Merge pull request #489 from afuetterer/coverage
test: fix coverage reporting
2 parents 940cb56 + 86901cc commit 6ebd24b

2 files changed

Lines changed: 17 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,12 @@ jobs:
2626
run: |
2727
python -m pip install --upgrade pip
2828
python -m pip install . --group=tests
29+
python -m pip list
2930
3031
- name: Run tests
31-
run: pytest -ra --cov
32+
run: |
33+
coverage run -m pytest
34+
coverage report
3235
3336
- name: Coveralls parallel
3437
uses: coverallsapp/github-action@v2

pyproject.toml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ dependencies = [
3737
[dependency-groups]
3838
tests = [
3939
"memory-profiler",
40+
"pytest>=9.0.3",
4041
"pytest-benchmark",
4142
"pytest-cov",
4243
]
@@ -61,6 +62,15 @@ packages.find.include = [
6162
[tool.setuptools.dynamic]
6263
version = {attr = "tika.__version__"}
6364

64-
[tool.coverage.run]
65-
source = [ "tika" ]
66-
branch = true
65+
[tool.pytest]
66+
minversion = "9.0"
67+
addopts = [ "-ra", "--showlocals", "--strict-config", "--strict-markers" ]
68+
log_level = "INFO"
69+
xfail_strict = true
70+
testpaths = [ "tests" ]
71+
72+
[tool.coverage]
73+
run.source = [ "tika" ]
74+
run.branch = true
75+
report.skip_covered = true
76+
report.show_missing = true

0 commit comments

Comments
 (0)