[users at bb.net] Collating test results using buildbot

Pierre Tardy tardyp at gmail.com
Fri May 20 14:30:11 UTC 2016


Le ven. 20 mai 2016 à 16:22, honas grael <honasgraeymael at gmail.com> a
écrit :

> Hi everyone,
> I'm using Windows and Buildbot 0.9.4b,
>
First thing is to do:
pip install -U 'buildbot[bundle]==0.9.0b9'

please dont use old betas.. :)


> I have managed to create a build and run tests. But now I would like to
> collate the test results.
> In my setup when a test completes an XML file is created what I'd like to
> know is how best to collate the results. (there are Lots and lots of
> results to go through )
>
> I came across this question on stackoverflow
> <http://stackoverflow.com/questions/25462570/showing-test-count-in-buildbot>.
> I am not familiar at all with the buildbot.steps.shell.Test also from the
> answer it might be best for me to parse the xml results myself, but I'm not
> sure where that code should go.
>
> Is the code shown in the example meant to be in the master.cfg file?
>
> In buildbot 9 what are some good practices in using
> buildbot.steps.shell.Test, are there any good examples out there.
>

There are not much changes in buildbot nine as far as the tests are
concerned. It looks like you xml parsing is quite specific.
I think the best option is to create a script that is run on the slave
(with a shellcommand), which parses the xml, and generate reports based on
that.
Then you can have a step which download the consolidated result from the
slave and add it as a html log.

a good example on how to do this can be found in buildbot_travis
https://github.com/buildbot/buildbot_travis/blob/master/buildbot_travis/steps/base.py
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20160520/ac65b48f/attachment.html>


More information about the users mailing list