aboutsummaryrefslogtreecommitdiff
path: root/python/setup.cfg
diff options
context:
space:
mode:
authorJohn Snow <jsnow@redhat.com>2021-09-15 12:29:55 -0400
committerJohn Snow <jsnow@redhat.com>2021-09-27 12:10:29 -0400
commita4ffaecd5726433f01b0ff857054acad9dc9df12 (patch)
treec5d4eb8b4e37d91df07d3550f5cdabba3d170061 /python/setup.cfg
parent8193b9d148e0d42794b78ab040c804db15b5f524 (diff)
python/aqmp: Add Coverage.py support
I'm not exposing this via the Makefile help, it's not likely to be useful to passersby. Switch the avocado runner to the 'legacy' runner for now, as the new runner seems to obscure coverage reports, again. Usage is to enter your venv of choice and then: `make check-coverage && xdg-open htmlcov/index.html`. Signed-off-by: John Snow <jsnow@redhat.com> Message-id: 20210915162955.333025-28-jsnow@redhat.com Signed-off-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'python/setup.cfg')
-rw-r--r--python/setup.cfg10
1 files changed, 10 insertions, 0 deletions
diff --git a/python/setup.cfg b/python/setup.cfg
index 8481fa7c92..4fd0c68a5b 100644
--- a/python/setup.cfg
+++ b/python/setup.cfg
@@ -140,3 +140,13 @@ deps =
.[fuse] # Workaround to trigger tox venv rebuild
commands =
make check
+
+# Coverage.py [https://coverage.readthedocs.io/en/latest/] is a tool for
+# measuring code coverage of Python programs. It monitors your program,
+# noting which parts of the code have been executed, then analyzes the
+# source to identify code that could have been executed but was not.
+
+[coverage:run]
+concurrency = multiprocessing
+source = qemu/
+parallel = true