[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Test code coverage

From: Hyrum K Wright <hyrum_at_hyrumwright.org>
Date: Mon, 26 Nov 2012 20:45:42 -0500

On Sun, Nov 25, 2012 at 5:17 PM, Stefan Fuhrmann <
stefan.fuhrmann_at_wandisco.com> wrote:

> Hi there,
>
> I was wondering whether we could have one or two of
> our UNIX build bots create a code coverage profile
> and make the results available online.
>
> Here is what I use in my test runner script:
>
> [[[
> env CFLAGS='-fprofile-arcs -ftest-coverage' ./configure --disable-shared
> --enable-maintainer-mode $moreopts
>
> make -sj 2> /dev/null > /dev/null
> make svnserveautocheck PARALLEL=1
>
> lcov -d . -b . -c -o tests.lcov > lcov.log
> genhtml tests.lcov -o html > genhtml.log
> ]]]

+1 to test coverage stats.

We have an ancient patch in our repo for making Subversion build and use
gcov to produce coverage information. I think it's in
tools/dev/gcov.patch. I don't know if it's useful or not, but as you're
looking at this topic, it might be a good time to revisit whether we need
it there or not.

-Hyrum
Received on 2012-11-27 02:46:16 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.