On 23/08/12 18:09, John Smith wrote:
Hi,
I just finished a first full run of lcov. There was one 'make check'
failure though, and there were a lot of 'warnings' running lcov that
may need some further investigation. Also, there is some stuff
included ('/usr/include/boost', for example) that might not be desired
in the report ?
yes, everything under /usr/include is just noise, would be great to
filter that out.
hmm... it's a bit ugly that we have so many directories in solver that
headers are copied to, but i guess we have to live with that for now :)
I guess the main thing to do first now is to see if this report
actually makes any sense. Essentially, all code that gets executed by
'make check' on toplevel (which does dev-install and subsequentcheck,
and dev-install includes both unitcheck and slowcheck) should show up
as covered in the report. Maybe people that are familiar with the
contents of the checks/tests and what code/functionality they cover
can take a look at that ?
so looking at a few bits where i'm familiar with the tests tests like:
http://dev-builds.libreoffice.org/lcov_reports/master~2012-08-22_09.11.23/sax/source/tools/converter.cxx.gcov.html
it seems quite plausible.
but looking at
http://dev-builds.libreoffice.org/lcov_reports/master~2012-08-22_09.11.23/unoxml/source/dom/node.cxx.gcov.html
http://dev-builds.libreoffice.org/lcov_reports/master~2012-08-22_09.11.23/unoxml/source/rdf/librdf_repository.cxx.gcov.html
some functions that are definitely tested like
librdf_Repository::querySelect or CNode::insertBeforeshow up entirely
un-executed.
are you running the JUnit based tests as well? i.e. if you use
--without-java or --without-junit, that would negatively affect the test
coverage.
these are run during "make subsequentcheck", you should have files like
workdir/*/JunitTest/unordf_complex/done.log.
Anyway, the generated html report as it currently is can be found here :
http://dev-builds.libreoffice.org/lcov_reports/
very good work!
Context
- Re: Bug 38840 - Adding coverage analysis to unit tests (continued)
Re: Bug 38840 - Adding coverage analysis to unit tests · Stephan Bergmann
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.