# Coverage configuration for the wiki stack's test suite. # # Why here and not in pytest.ini: coverage.py reads `.coveragerc`, `setup.cfg`, # `tox.ini` and `pyproject.toml`, and none of them is `pytest.ini` - a # `[coverage:*]` section there would be silently ignored. pytest's own settings # stay in pytest.ini; this file holds only what coverage.py itself parses. # # The measurement is deliberately *not* wired into pytest's addopts. `pytest-cov` # is a CI-only dependency (see .gitea/workflows/ci.yml) and is absent from # tools/requirements.txt on purpose - an instance runs the wiki, it does not # measure the stack's tests - so an addopts entry would break the plain # `pytest -q` that every local run and the CI "Tests" step use. # # No `fail_under` yet, on purpose: Gitea #10 sets the threshold in a separate, # later commit, once the measured number exists to justify it. A threshold # picked before the number is either too low to bite or too high to survive the # next honest commit - and the second kind gets lowered rather than earned. [run] source = chemenu omit = chemenu/tests/* [report] show_missing = True precision = 1