Subunit stream detail attachment extractor
Project description
Python Test Detail attachment extractor for SubUnit streams.
- Requires:
Python 3.x
subunit
testtools
- Author:
Corey Goldberg, 2014
About SubUnit:
SubUnit is a streaming protocol for test results. The protocol is a binary encoding that is easily generated and parsed. By design all the components of the protocol conceptually fit into the xUnit TestCase -> TestResult interaction.
Test Details:
Details may be attached from a TestCase, using the testtools library (extension to Python’s standard unittest lib). They will end up as attachments to the TestResult. Using subunit, the detail attachments may be of any format and mime-type, and can be parsed and retrieved.
About subunit-details:
Given a binary subunit stream stored as a file, the subunitdetails script will extract test detail attachments and save them individually to the filesystem.
Using subunit-details to extract attachments:
Invoke the subunitdetails script, with a subunit file name as an argument:
$ subunitdetails <subunit_file>
Installing:
subunit-details uses standard python packaging via setuptools.
There are a few options to choose from for installing:
install from PyPI, system-wide:
$ sudo pip install subunit-detailsinstall from PyPI, using a virtualenv:
$ virtualenv -p python3 .env $ source .env/bin/activate $ pip install subunit-detailsclone the dev repository and install, system-wide:
$ git clone https://github.com/cgoldberg/subunit-details.git $ cd subunit-details $ sudo python3 setup installclone the dev repository and install, using a virtualenv:
$ git clone https://github.com/cgoldberg/subunit-details.git $ cd subunit-details $ virtualenv -p python3 .env $ source .env/bin/activate $ python3 setup install
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
File details
Details for the file subunitdetails-0.0.1.tar.gz
.
File metadata
- Download URL: subunitdetails-0.0.1.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 818d8c87745d4c01dd41c29043ada0f86b0efecdabcfb75df29e95d8e3435dde |
|
MD5 | 57f38c529fe1a20a4722b1fef1322ddf |
|
BLAKE2b-256 | eaa1d29d93180e079dcf9b7bf0d3766beeb4d834291f295f25d7868b87fcbca3 |