From: Peter Oberparleiter <oberpar@li...> - 2012-04-10 15:30:00
not sure if this is still relevant for you, but:
On 05.03.2012 06:31, lija george wrote:
> I am using LCOV 1.9 for code coverage testing in my iOS application. I
> have done all the configuration required and .gcda and .gcno files got
> generated using Xcode 4.2.Also the Code coverage report got generated using
> LCOV. But the output that is the Coverage of Lines, Functions and Branches
> are not correct in the report. I checked the same, with CoverStory tool
> and there are some difference in the report. So could you please tell me,
> will LCOV work correctly with Obj C code or not..
As long as the output of the underlying gcov tool is correct for
Objective C, the answer should be yes. There has been a bug fix for LCOV
since version 1.9 available in the CVS version of LCOV  which fixes
some Objective C related problems. Quote from the patch log:
>> current version of lcov unfortunately not support Objective-C files.
>> In details the count of tested function is zero always and the
>> annotated lines have an offset by one if the Objective-C method
>> have one ore more arguments.
This sounds as it may apply to the issues you are seeing.
 See http://ltp.sourceforge.net/coverage/lcov.php
Get latest updates about Open Source Projects, Conferences and News.