See

Gcov with Lcov usage

How to use gcov with lcov frontend to generate code coverage reports for C++ projects.