Skip to main content

SubUnit Details Parser - Test Detail attachment extractor.

Project description

Requires:
  • Python 3.x

  • python-subunit

  • testtools

Author:
  • Corey Goldberg, 2014


About subunitdetails:

subunitdetails takes a binary encoded subunit stream, and extracts test details (content object attachments) and saves them to the filesystem.

Using subunitdetails to extract content object attachments:

Invoke the subunitdetails script, with a subunit file name as an argument. It will extract the embedded content objects (test details) from the subunit result, into the current directory:

$ subunitdetails <file_name>

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.

About Test Details:

Details are MIME-based content objects that may be attached to a TestCase. This is done using the testtools library (extensions to Python’s standard unittest lib). It allows you to attach any information that you could possibly conceive of to a test, and allows testtools to use or serialize that information.

Using subunit, the encoded stream can be parsed. Test suite results and attached Details (with MIME-types) can then be retrieved.

Installing subunitdetails:

subunit-details uses standard python packaging via setuptools.

There are a few ways to install subunitdetails.

  • Install from PyPI using pip (system-wide):

    $ sudo pip install subunitdetails
  • Install from PyPI using pip, into a virtualenv::

    $ virtualenv -p python3 .env
    $ source .env/bin/activate
    $ pip install subunitdetails
  • Clone the dev repository and install, using a virtualenv:

    $ git clone https://github.com/cgoldberg/subunitdetails.git
    $ cd subunitdetails
    $ 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

subunitdetails-0.0.2.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file subunitdetails-0.0.2.tar.gz.

File metadata

File hashes

Hashes for subunitdetails-0.0.2.tar.gz
Algorithm Hash digest
SHA256 32e8020ce3113288c66789cb019eaa55c58fae0be0b4658640d5c567061c5201
MD5 026ac8d7f9b17dff76538692275fc16b
BLAKE2b-256 b51f6bdae7edbd165b34d26615ea43bd4c095a50cef0f63c6d74fa1597b33643

See more details on using hashes here.

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