I want to get coverage information from my googletest tests, but it's hard for me to find good instructions.
I assume that I should compile my gtest binary so that it will .gcno and .gcna . However, no combination of compiler flags seems to happen.
I tried using --coverage and -fprofile-arcs -ftest-coverage for both compilation and linking, but to no avail.
Am I just mistaken in the whole approach? Will googletest tests ever compile like this?
For completeness, the entire make file is presented here:
# -*- indent-tabs-mode:t; -*-
c ++ gcc googletest gcov
jsj
source share