gcovr Package Installation on Mac
About gcovr : Reports from gcov test coverage program!
More Information: http://gcovr.com/
Gcovr helps as a utility to manage the use of the GNU gcov and generating summarized code coverage results. The command is inspired by the Python coverage.py package, which provides a similar utility for Python.
The gcovr
can produce different types of coverage reports:
- default: compact human-readable summaries
--html
: HTML summaries--html-details
: HTML report with annotated source files--xml
: machine readable XML reports in Cobertura format--sonarqube
: machine readable XML reports in Sonarqube format--json
: JSON report with source files structure and coverage
Steps:
- Launch Terminal by pressing
command+space
, typeterminal
and hitEnter
key. - Run
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
- Install
brew install gcovr
Done!