[Buildbot-devel] parsing googletests, collecting stats

Dmitry Nezhevenko dion at dion.org.ua
Wed Oct 17 12:02:32 UTC 2012


On Wed, Oct 17, 2012 at 11:41:27AM +0200, Benoît Allard wrote:
> You're talking about Google C++ Testing Framework [1], right ?
> 
> We do have a custom step for that. The trick is to call the testsuite with an extra::
> 
>   --gtest_output=xml:testoutput.xml
> 
> And add that testoutput.xml to your ``logfiles`` with something like::
> 
>   kwargs['logfiles'] = {'xml': 'testoutput.xml'}
> 

It's still a bit dangerous. Imagine that gtest will just crash. In such
case XML file will be broken. That's why I suggest to ignore XML output
itself and parse stdout.

Another issue is how to deal with timed out tests. If you've just one
gtest executable, it's enough to just set build step timeout.

We're actually finding all executables named '*_gTest' and executing them
using script on buildslave. This script also implements own timeout
handling.

-- 
WBR, Dmitry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://buildbot.net/pipermail/devel/attachments/20121017/b11983c0/attachment.bin>


More information about the devel mailing list