[Buildbot-devel] parsing googletests, collecting stats

Tom Prince tom.prince at ualberta.net
Tue Oct 30 20:32:57 UTC 2012

Dmitry Nezhevenko <dion at dion.org.ua> writes:

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

Or just use an xml parser that is resilient to errors, and can return
everything that has been parsed succesfully.


More information about the devel mailing list