pytest-subunit is a plugin for py.test that generates output in subunit format.
Plugin was tested on Python 2.7 and 3.5, and requires:
- pytest 2.6.4 or newer
- python-subunit 1.2 or newer
To install pytest-subunit:
$ pip install pytest-subunit
Then run your tests with subunit output:
$ py.test --subunit