crossdistro / network-testing

BSD 2-Clause "Simplified" License
6 stars 9 forks source link

RFE: add xunit output files #19

Closed jscotka closed 7 years ago

jscotka commented 8 years ago

Hi, jenkins and other CI automation tools prefer as output format xunit with test results: https://en.wikipedia.org/wiki/XUnit

It would be nice to have there something similar tool like: client_server_genhtml.py what transform results from json to xunit files Honza

pavlix commented 8 years ago

Wikipedia apparently doesn't describe the xunit format. And it would be nice if you could provide an example xunit output derived from an existing json result.

https://github.com/pavlix/network-testing/tree/master/report/example_data

jscotka commented 8 years ago

Hi, it could be something like: Attached bellow ouut.xunit.zip

I was ispired by unittests especially by avocado project (Redhat project, should replace autotest framework in future): https://github.com/avocado-framework/avocado/ There is another possibility, to let scheduling tests on avocado and remove whole scheduler functions from this project. and uses avocado internally (it has possibilities to export results to html, xunit, json) Avocado has also somehing named multiplexing, what is exactly list of scenarios what are multiplexed on same file Attaching some complex testsuite example ouut.xunit3.zip

jscotka commented 8 years ago

I wrote for you some small wrapper using avocado framework to create xunit output. I also works as scheduler of tests and generate resutls here is script to do that (avocado support multiplexing, but I'm lazy, so it is the simplest solution): test.txt

and results xunit, html, and plain log output: http://www.pastefile.com/X2smZQ

jscotka commented 7 years ago

It is not imporant now, I have workarounds for that, so closing the issue