From a4ffaecd5726433f01b0ff857054acad9dc9df12 Mon Sep 17 00:00:00 2001 From: John Snow Date: Wed, 15 Sep 2021 12:29:55 -0400 Subject: 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 Message-id: 20210915162955.333025-28-jsnow@redhat.com Signed-off-by: John Snow --- python/setup.cfg | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'python/setup.cfg') 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 -- cgit 1.4.1