Cleanup any old coverage files, and run unit tests
Generate coverage info (slow). With the html argument the script will generate HTML report as well:
if you see genhtml (from lcov) error on macOS like below:
please upgrade lcov to min. 1.16, or patch genhtml (for example /usr/local/Cellar/lcov/1.15/libexec/bin/), change --no-strip-underscores to --no-strip-underscore
Open the generated coverage/index.html to view the report.
c++filt: Unknown command line argument '--no-strip-underscores'. Try: '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++filt --help'
c++filt: Did you mean '--no-strip-underscore'?
genhtml: ERROR: c++filt output not as expected (0 vs 11) lines