Commit b1aaa784 authored by Christian Kellner's avatar Christian Kellner

HACKING: instructions how to get code coverage

NB: on fedora gcovr needs to be installed via pip --user, because
there is no package. meson also does not yet support excluding
specific directories.
parent 25963bb4
......@@ -27,6 +27,23 @@ relative to the build directory):
VALGRIND=../bolt.supp meson test -C build --verbose
Coverage
--------
To analyze the current code coverage either `lcov` or `gcovr` need
to be installed. Support must also be enabled during configure time:
meson -Db_coverage=true <buildir>
This should enable the general `coverage` target as well as the
`coverage-{text, html, xml}` targets:
ninja -C <builddir> coverage
To manually invoke `gcovr` and exclude the `cli` directory use:
gcovr -r <builddir> -e cli -s
Static analysis
===============
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment