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.

Installation

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

Usage

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()
unitstyle.TestRunner().run(suite)

Supported arguments to unitstyle’s TestRunner are:

Output Formats

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

License

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.

Source Distribution

unitstyle-1.0.1.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

unitstyle-1.0.1-py2.py3-none-any.whl (8.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file unitstyle-1.0.1.tar.gz.

File metadata

  • Download URL: unitstyle-1.0.1.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for unitstyle-1.0.1.tar.gz
Algorithm Hash digest
SHA256 f6deae2bb7ef30fab1be159a7164fea36dd89d3c3199389eac6146db31c86ada
MD5 900a722a2b9eeeb38b0acca73f31b99c
BLAKE2b-256 34b471b3ce244039c3b2537b37942fbaff3e375426b99e96328060fa6b2523d4

See more details on using hashes here.

File details

Details for the file unitstyle-1.0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for unitstyle-1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3cac46dd58b95d40f75f9c905a19313b31a42d44026c231456cc61c6c587923c
MD5 39e4cf3151116c5580dac7d0ed3ea2c2
BLAKE2b-256 b20a2fd232ddff0ea972f6fba951aa95ee45bd0b0cc8566d15f19089852070e2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page