Add coverage reporting to the test suite

- the nox session "test-coverage" triggers further nox sessions
  that run the test suite for all supported Python versions
- the nox session "_test-coverage-run" runs the test suite for
  a particular Python version using the coverage tool
- the nox session "_test-coverage-report" combines the individual
  coverage reports
This commit is contained in:
Alexander Hess 2024-09-10 02:01:23 +02:00
commit 6945cdef0a
Signed by: alexander
GPG key ID: 344EA5AB10D868E0
4 changed files with 81 additions and 9 deletions

View file

@ -60,6 +60,7 @@ pydoclint = { extras = ["flake8"], version = "^0.5" }
ruff = "^0.6"
# Test suite
coverage = "^7.6"
packaging = "^24.1" # to test the version identifier
pytest = "^8.3"
pytest-cov = "^5.0"