use lcov & gcov to generate coverage report use genhtml to generate html pages on ubuntu: sudo apt-get install lcov will install these two cmd lines.