Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does lcov generate intermediate .gcov files?

I use lcov with an Objective-C project and the XcodeCoverage scripts and I get a nice html report on my code coverage.

However I would like to "keep" the intermediate .gcov files (if any) to feed them to another tool. Something similar to the --keep option of gcovr. Does lcov provides such an option ? Is it generating any intermediate .gcov files at all ?

I'm sure it's something obvious that I missed in the docs. Thanks.

like image 903
lazi74 Avatar asked Oct 21 '25 02:10

lazi74


1 Answers

Yes, lcov generates .gcov files but they are deleted once they have been processed. There is no "keep" option.

I found in the code of version lcov-1.10 the following behavior: lcov calls geninfo which removes the .gcov files after processing.

like image 53
lazi74 Avatar answered Oct 22 '25 15:10

lazi74



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!