]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/tox: adding coverage target to the main tox.ini 68570/head
authorRedouane Kachach <rkachach@ibm.com>
Thu, 23 Apr 2026 11:15:19 +0000 (13:15 +0200)
committerRedouane Kachach <rkachach@ibm.com>
Thu, 23 Apr 2026 12:09:10 +0000 (14:09 +0200)
commitd16b846a4950de3640c4b4399ed76fb625356c38
tree6e74ff27114cb2d3d6fe7d59e2e28904c98e45f8
parenta40bf610664bc0baf1edf950dd01ac030765b822
mgr/tox: adding coverage target to the main tox.ini

Let's add a coverage target so we can measure this metric for mgr modules.

Usage examples:

Run coverage for a single module (percentages only):
  tox -e coverage -- cephadm
  tox -e coverage -- smb

Show uncovered line numbers:
  COVERAGE_REPORT=term-missing tox -e coverage -- cephadm

Generate a visual HTML report:
  COVERAGE_REPORT=html tox -e coverage -- cephadm
  firefox htmlcov/index.html

Signed-off-by: Redouane Kachach <rkachach@ibm.com>
src/pybind/mgr/tox.ini