Skip to main content

A Twisted Trial reporter which emits Subunit v2 streams.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

subunitreporter-19.3.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

subunitreporter-19.3.0-py2.py3-none-any.whl (6.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file subunitreporter-19.3.0.tar.gz.

File metadata

  • Download URL: subunitreporter-19.3.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/2.7.14

File hashes

Hashes for subunitreporter-19.3.0.tar.gz
Algorithm Hash digest
SHA256 34f41fc01026b17096a8f79898d10b8dc2f53f728c751e2c582fb473b48b3eae
MD5 230d9b00a0195877dcf41aa9f87ff0ed
BLAKE2b-256 d358ec37854914fefb06d4c78c62ca67b5e3ec36329547b7ab837a9d588f22fc

See more details on using hashes here.

Provenance

File details

Details for the file subunitreporter-19.3.0-py2.py3-none-any.whl.

File metadata

  • Download URL: subunitreporter-19.3.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/2.7.14

File hashes

Hashes for subunitreporter-19.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d99b76f0472d3cf4460857c2c374a9a24b7b2935c5898aaee4c4419189d29f1b
MD5 e976e04af08ed9477f0c5e7446c9903c
BLAKE2b-256 ca847170d17fe2dcf8174a03ec46f8130b704f28511a787020c95d4a0d61e9ed

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page