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 details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for subunitdetails-0.0.1.tar.gz
Algorithm Hash digest
SHA256 818d8c87745d4c01dd41c29043ada0f86b0efecdabcfb75df29e95d8e3435dde
MD5 57f38c529fe1a20a4722b1fef1322ddf
BLAKE2b-256 eaa1d29d93180e079dcf9b7bf0d3766beeb4d834291f295f25d7868b87fcbca3

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