Bug 38840 - add coverage analysis to unit tests
Summary: add coverage analysis to unit tests
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL: https://wiki.documentfoundation.org/D...
Whiteboard:
Keywords: difficultyBeginner, easyHack, skillScript
Depends on: 53155
Blocks:
  Show dependency treegraph
 
Reported: 2011-06-30 09:30 UTC by Björn Michaelsen
Modified: 2016-02-18 16:37 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Björn Michaelsen 2011-06-30 09:30:59 UTC
add coverage analysis to unit tests

Background: Feedback loop in testing is missing, we need to add that. Example is here:

           http://developer.digitalstrom.org/redmine/wiki/dss/Generate_coverage_report

Skills: shell scripting, Makefile reading
Comment 1 Terrence Enger 2011-08-11 09:21:14 UTC
Link given in previous comment is 404-AWOL at the moment.  Should it perhaps be <http://redmine.digitalstrom.org/projects/dss/wiki/Generate_coverage_report>?
Comment 2 Florian Reisinger 2012-05-18 08:59:54 UTC
Deteted "Easyhack" from summary
Comment 3 Julien Nabet 2012-07-11 19:24:02 UTC
bfo mentionned Thunderbird coverage there http://people.mozilla.org/~jcranmer2/c-ccov/ (quote from http://nabble.documentfoundation.org/LibreOffice-code-coverage-tp3994901.html).

lcov is a front to gcov (see http://gcc.gnu.org/onlinedocs/gcc/Gcov.html). Leafing through the url, it seems quite straightforward to generate the data coverage file. Of course, there's after all the instrumentalization around this for a project of a size of LO. Perhaps a specific "Tinderbox" could help ?
Comment 4 bfoman (inactive) 2012-07-11 22:06:55 UTC
Another example - Firefox coverage:
http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/experimental/codecoverage/
Comment 5 bfoman (inactive) 2012-08-05 10:16:44 UTC
Seems there is a trace of gcov work in the source already:
http://cgit.freedesktop.org/libreoffice/core/tree/sal/qa/helper/gcov
Comment 6 John Smith 2012-08-23 16:29:31 UTC
Added the URL that contains the lcov report(s).
Comment 7 Björn Michaelsen 2013-10-04 18:46:34 UTC
adding LibreOffice developer list as CC to unresolved EasyHacks for better visibility.

see e.g. http://nabble.documentfoundation.org/minutes-of-ESC-call-td4076214.html for details
Comment 8 Björn Michaelsen 2013-10-08 15:50:07 UTC
17:25 < Sweetshark_> sberg, erAck_away: can fdo#38840 be closed?
17:33 <@sberg> Sweetshark_, how do I know?  /you/ filed that issue ;)  and yes, we have the machinery now, even though we do not make any 
               use of it (yet?), so the bug can probably be closed indeed

=> thus closing, best file a new EasyHack with the exciting new things to build on top of this when needed.
Comment 9 Robinson Tryon (qubit) 2015-12-15 16:24:51 UTC
Migrating Whiteboard tags to Keywords: (EasyHack DifficultyBeginner SkillScript )
[NinjaEdit]
Comment 10 Robinson Tryon (qubit) 2016-02-18 16:37:11 UTC
Remove LibreOffice Dev List from CC on EasyHacks
(curtailing excessive email to list)
[NinjaEdit]