I am facing following issues with Code coverage:
I followed following steps :
Directory where ,gcno and .gcda files are present is :: D:\RTC_Latest_GTEST\RTC_21_11_18\software\output_gtest\Application\contents\Application_name
Directory from where gcovr command executed is :: D:\RTC_Latest_GTEST\RTC_21_11_18\software\Application\contents\Application_name
Currently i am running gcovr command from Application_name folder.
I ran the following command to generate the in depth html reports for my code :
python.exe c:\\Python27\\gcovr --exclude-unreachable-branches -b -r . -d --html --html-details -o coverage.html
Expected Results:
-->.gcda files are getting deleted because of -d option as already told by @amon in comment.
-->Below is the command i have used for generating coverage report, i am running this command from Application_name directory::
gcovr -r .. --html --html-details -o coverage.html --object-directory=../../../..//output_gtest//Application//contents//Application_name
-->I made following modification in the command, mentioned above:
1)--object-directory ,here I added the path whre my .gcda and .gcno files are present.
2)I am using outdated version of gcovr because of which i am unable to generate coverage report, so i update my gcovr version the steps for the same is mentioned in the below link ::