A Twisted Trial reporter which emits Subunit v2 streams.
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file subunitreporter-23.8.0.tar.gz.
File metadata
- Download URL: subunitreporter-23.8.0.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af710200f4d6ead8be0420083cfb588e593d72a9734e4d65e1303940a3c7c766
|
|
| MD5 |
e44edc4c8c62f14adc8e30c23fbfe257
|
|
| BLAKE2b-256 |
60eb02043c86652514a158ba767846b4c9f972a3e339dd0911f999941139df6c
|
File details
Details for the file subunitreporter-23.8.0-py2.py3-none-any.whl.
File metadata
- Download URL: subunitreporter-23.8.0-py2.py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0cdcd8d6d5682864a5165120e91d269a5faf551beba97007371841b2e69b5b3
|
|
| MD5 |
ae356b79f40c93363934ca3134a2f5fa
|
|
| BLAKE2b-256 |
7aa2bcd8e2c4eadcda1e7e153778e8e64c8f5c02b59c639b20e8f219c0db9b40
|