[tempest] change output format

Jeremy Stanley fungi at yuggoth.org
Tue Sep 7 13:29:53 UTC 2021


On 2021-09-07 10:40:34 +0300 (+0300), Vladimir Prokofev wrote:
> Is there a way to change the output format of tempest tests?
> Preferably to JSON. So instead of test something... ok it produced
> the same result but in JSON format.

Tempest produces a subunit stream with details of all the tests
performed. This is a standard data exchange format for test results,
which can be readily parsed with a library like
https://pypi.org/project/python-subunit/ after which serializing to
JSON would presumably be a trivial exercise (or just consume the
subunit stream directly if the desire was merely to use JSON for
programmatic parsing, that's what the subunit is for anyway).
-- 
Jeremy Stanley
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20210907/31b5a18f/attachment.sig>


More information about the openstack-discuss mailing list