lcov and gcovr -r . not generating the code coverage report for *.cpp files.
I am new to googletest framework. I have written a UT to test the code functionality and compiled the code with options -fprofile-arcs -ftest-coverage --coverage and lgcov in Makefiles. After executing the test-cases, I am able to see the *.gcno and .gcda files. But not getting the proper code coverage report.
Step 1: update the Makefile --> -fprofile-arcs -ftest-coverage --coverage
Step 2: build the code.
Step 3: running the test cases.
Step 4: gcovr -r .
Observed: Not getting *.cpp file coverage for which test cases are execute.