Skip to contentSkip to conversation

coverage history

LTP John Schmitt 2 participants 4 messages Oct 30, 2012 – Nov 5, 2012

lore
Share & tools
lore
#0 lore raw

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?

Thanks for your input.

John

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

#1 lore raw
Quoted 1 line · John Schmitt

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.

Regards,
Peter Oberparleiter

Signature · 13 lines
Peter Oberparleiter
Linux on System z Development - IBM Germany


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
#2 lore raw
Quoted 8 lines · Peter Oberparleiter
Quoted 1 line · John Schmitt

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.

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

John

------------------------------------------------------------------------------
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

#3 lore raw
Quoted 11 lines · John Schmitt
Quoted 8 lines · Peter Oberparleiter
Quoted 1 line · John Schmitt

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!

Quoted 1 line

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

Signature · 14 lines
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