Skip to main content

Adds various style choices to unittest output

Project description

unitstyle is a python module that adds several output format options for Python’s standard unittest library (unittest2). Specifically, it adds many of the output options offered by mocha, a javascript unit testing framework. This package was created to port those outputs to Python.


unitstyle is available on PyPI. You should be able to install it with pip install unitstyle.


The unitstyle package provides itself as a unittest TestRunner, and should be used as such.

simple example:

import unittest
import unitstyle

suite = unittest.TestLoader().discover()

Supported arguments to unitstyle’s TestRunner are:

Output Formats

Feel free to open an issue to request more, or pull requests!


This project and code is licensed under the MIT License. See the LICENSE file for more.

Copyright (c) 2015 Dan Panzarella

Project details

Download files

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

Files for unitstyle, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size unitstyle-1.0.1-py2.py3-none-any.whl (8.2 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size unitstyle-1.0.1.tar.gz (6.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page