[Buildbot-devel] parsing googletests, collecting stats

Benoît Allard benoit at aeteurope.nl
Wed Oct 17 09:41:27 UTC 2012



> -----Original Message-----
> From: Andy Howell [mailto:andy at gamubaru.com]
> Sent: Wednesday, October 17, 2012 12:36 AM
> To: buildbot-devel
> Subject: [Buildbot-devel] parsing googletests, collecting stats
> 
> I want to use buildbot to run unit tests written with googletest. I'd like to
> do two
> things, first is display the number of tests the passed and failed on the web
> page,
> similar to the way that compile warnings are.

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'}

in your ``__init__``.

> 
> The second thing on the to-list is to collect test results and display
> historical trends.


That's another topic which we did not aborded.

Regards,
Benoît.

[1] http://code.google.com/p/googletest/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6467 bytes
Desc: not available
URL: <http://buildbot.net/pipermail/devel/attachments/20121017/45cd8db0/attachment.bin>


More information about the devel mailing list