Rahix/tbot

test reports

noamc opened this issue · 1 comments

noamc commented

Hi,

I used to work through Jenkins and see all nice GUI reports and statistics about my running tests.
Is there a way to connect new TBOT to Jenkins?
How do I see reports/statistics of my regressions?
Any snapshot examples somewhere I can view?

Regards,
Noam

Rahix commented

Hi Noam!

Yes, tbot generates a logfile which can then be parsed by a so called "generator". For Jenkins there is the junit generator which generates a junit xml file that Jenkins can then display.
There are also other generators, for example an html-log generator which doesn't need Jenkins for visualizing the test run.

To use the generators, call tbot with --log (to have a predictable logfile location):

$ tbot --log /tmp/tbot-log.json <...>
$ /path/to/tbot/generators/junit.py /tmp/tbot-log.json >/tmp/junit.xml

To be quite honest, this part of tbot isn't very mature yet, so if it doesn't work as it should, please file a bug report or feature request!