You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Gcovr provides a utility for managing the use of the GNU
gcov
utility
and generating summarized code coverage results. This command is
inspired by the Python
coverage.py
package, which provides a similar
utility for Python.
The
gcovr
command can produce different kinds of coverage reports:
Thus, gcovr can be viewed
as a command-line alternative to the
lcov
utility, which runs gcov
and generates an HTML-formatted report.
The development of gcovr was motivated by the need for
text summaries and XML reports.
Example HTML summary:
Example HTML details:
Installation
Gcovr is available as a Python package that can be installed via
pip
.
Gcovr will create one HTML report per source file and for
--html-nested also per directory next to the coverage.html
summary.
You should run gcovr from the build directory.
The -r option should point to the root of your project.
This only matters if you have a separate build directory.
For example: