Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Currently you can exclude files and directories with
This would be convenient for tests, third party code and so on. You can also change which parts of the source tree to ignore without having to edit the commands used to invoke gcovr.
Hello @jpakkane, the HEAD version of gcovr (not yet released on PyPI) has support for configuration files (designed in #229, implemented in #281). You can then add a gcovr.cfg file to your project's
exclude = tests/ exclude = third-party/
This works exactly like adding those to the front of the command line arguments, here:
The list of exclusions is not currently provided in the HTML report, and I don't know whether that would be helpful in the general case.
You could try installing gcovr directly from GitHub (e.g.