Skip to content

mocha-style test output for python's unittest module.

License

Notifications You must be signed in to change notification settings

pzl/py_unitstyle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

unitstyle

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

About

mocha-style test output for python's unittest module.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published