From 86901ccf759bbfdd37255e985634f718b8bff2c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Heinz-Alexander=20F=C3=BCtterer?= <35225576+afuetterer@users.noreply.github.com> Date: Mon, 27 Apr 2026 09:36:38 +0200 Subject: [PATCH] test: fix coverage reporting --- .github/workflows/ci.yml | 5 ++++- pyproject.toml | 16 +++++++++++++--- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a300241..8b126eb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,9 +26,12 @@ jobs: run: | python -m pip install --upgrade pip python -m pip install . --group=tests + python -m pip list - name: Run tests - run: pytest -ra --cov + run: | + coverage run -m pytest + coverage report - name: Coveralls parallel uses: coverallsapp/github-action@v2 diff --git a/pyproject.toml b/pyproject.toml index 19eda95..ce155cb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,6 +37,7 @@ dependencies = [ [dependency-groups] tests = [ "memory-profiler", + "pytest>=9.0.3", "pytest-benchmark", "pytest-cov", ] @@ -61,6 +62,15 @@ packages.find.include = [ [tool.setuptools.dynamic] version = {attr = "tika.__version__"} -[tool.coverage.run] -source = [ "tika" ] -branch = true +[tool.pytest] +minversion = "9.0" +addopts = [ "-ra", "--showlocals", "--strict-config", "--strict-markers" ] +log_level = "INFO" +xfail_strict = true +testpaths = [ "tests" ] + +[tool.coverage] +run.source = [ "tika" ] +run.branch = true +report.skip_covered = true +report.show_missing = true