Skip to main content

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-details
  • install from PyPI, using a virtualenv:

    $ virtualenv -p python3 .env
    $ source .env/bin/activate
    $ pip install subunit-details
  • clone the dev repository and install, system-wide:

    $ git clone https://github.com/cgoldberg/subunit-details.git
    $ cd subunit-details
    $ sudo python3 setup install
  • clone 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

subunitdetails-0.0.1.tar.gz (3.5 kB view hashes)

Uploaded Source

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