]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: add a tox env for generating a coverage report 48191/head
authorJohn Mulligan <jmulligan@redhat.com>
Mon, 19 Sep 2022 19:11:27 +0000 (15:11 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Tue, 20 Sep 2022 18:50:38 +0000 (14:50 -0400)
This "dormant" target is here for developers to run locally and generate
a HTML coverage report to review.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/cephadm/tox.ini

index 56fe3330362771ebbc336c342a028103d723aba2..9f280bc195397f7eaa925c95abd4f2ee36b0ecfe 100644 (file)
@@ -65,3 +65,13 @@ commands =
     bash -c "test $(grep -c 'docker.io' cephadm.py) == 11"
 # Downstream distributions may choose to alter this "docker.io" number,
 # to make sure no new references to docker.io are creeping in unnoticed.
+
+# coverage env is intentionally left out of the envlist. It is here for developers
+# to run locally to generate and review test coverage of cephadm.
+[testenv:coverage]
+skip_install=true
+deps =
+  {[testenv]deps}
+  pytest-cov
+commands =
+  pytest -v --cov=cephadm --cov-report=term-missing --cov-report=html {posargs}