On 05.11.2012 16:33, John Schmitt wrote:
> On Tue, Oct 30, 2012 at 12:21:49PM +0100, Peter Oberparleiter wrote:
>> On 30.10.2012 01:39, John Schmitt wrote:
>>> Is there a way to generate track the coverage of a project over time?  If 
>>> I'm writing unit tests as my code base expands, can I see how my coverage 
>>> of that code base goes up or down over time as reported by lcov?
>>
>> There is no integrated way to track coverage changes over time with
>> lcov, although this may be a good idea for a future improvement.
>>
>> For now, you could manually extract the coverage results using the
>> --summary or --list option of lcov and put that into a spreadsheet.
>
> Thank you, Peter, this is the best advice I've received.

You're welcome!

> I see the --list option in lcov but I don't see a --summary.  Are you 
> referring to --function-summaries which gcov takes?

The "lcov --summary <filename>" option comes with lcov 1.10. It shows 
coverage rates for all of a file, while --list shows the information for 
each file.


Regards,
   Peter

-- 
Peter Oberparleiter
Linux on System z Development - IBM Germany


------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to