Skip to main content
PyPI Package

What is this?

subunitreporter is a plugin for Twisted Trial which adds two new reporters. The subunitv2 reporter emits subunit v2 result streams with timing information. The subunitv2-b64 reporter emits the same information, base64-encoded. The subunitv2-file reporter emits the same information, written directly to a file instead of the normal trial output stream. The subunitv2-file reporter can also emit progress information to the normal reporting stream (usually stdout) to avoid falling prey to hang-detection based on amount of time with no output.

Usage Sample

Use this with your trial command-lines. For example:

$ trial --reporter=subunitv2 ... | subunit-stats
$ trial --reporter=subunitv2-b64 ... | base64 -d | subunit-stats
$ SUBUNITREPORTER_OUTPUT_PATH=results.subunit2 trial --reporter=subunitv2-file ...
$ SUBUNITREPORTER_OUTPUT_PATH=results.subunit2 trial --rterrors --reporter=subunitv2-file ...

Installing

To install the latest version of subunitreporter using pip:

$ pip install subunitreporter

For additional development dependencies, install the dev extra:

$ pip install subunitreporter[dev]

Testing

subunitreporter uses pyunit-style tests. After installing the development dependencies, you can run the test suite with trial:

$ pip install subunitreporter[dev]
$ trial subunitreporter

License

subunitreporter is open source software released under the MIT License. See the LICENSE file for more details.

Release files for subunitreporter 23.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for subunitreporter 23.8.0
File Size Uploaded
subunitreporter-23.8.0.tar.gz 7.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for subunitreporter 23.8.0
File Interpreter ABI Platform
subunitreporter-23.8.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 15.5 kB

Release files / subunitreporter-23.8.0.tar.gz

Download URL subunitreporter-23.8.0.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
af710200f4d6ead8be0420083cfb588e593d72a9734e4d65e1303940a3c7c766
BLAKE2b-256 checksum
How to use checksums
60eb02043c86652514a158ba767846b4c9f972a3e339dd0911f999941139df6c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / subunitreporter-23.8.0-py2.py3-none-any.whl

Download URL subunitreporter-23.8.0-py2.py3-none-any.whl
Size 8.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
d0cdcd8d6d5682864a5165120e91d269a5faf551beba97007371841b2e69b5b3
BLAKE2b-256 checksum
How to use checksums
7aa2bcd8e2c4eadcda1e7e153778e8e64c8f5c02b59c639b20e8f219c0db9b40
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release history Release notifications | RSS feed

This release

23.8.0 This release

2 release files

22.2.0

1 release file

19.3.2

2 release files

19.3.1

2 release files

19.3.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page