Metadata-Version: 2.0
Name: pytest-mocha
Version: 0.2.1
Summary: pytest plugin to display test execution output like a mochajs
Home-page: https://github.com/rudineirk/pytest-mocha
Author: Rudinei Goi Roecker
Author-email: rudinei.roecker@gmail.com
License: MIT
Description-Content-Type: UNKNOWN
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Topic :: Software Development :: Testing
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Utilities
Requires-Dist: colorama (>=0.3.9)

# pytest-mocha

Pytest output in [MochaJS](http://mochajs.org) format

![pytest-mocha](https://cloud.githubusercontent.com/assets/5260987/26183565/eaa21f8e-3b55-11e7-8c9e-bdf1613d3903.png)

It uses docstrigs as a tool to create the sections that mocha creates using the `describe` and `it` structure. Example:

```python
# file examples/test_example.py
def test_case():
    '''Section :: subsection :: Should execute test'''
    pass
```

outputs this:

```
Section :: examples/test_example.py
    subsection
        ✓ Should execute test
```

## Install

```
pip install pytest-mocha
```

## Use

```
pytest --mocha
```

## Args

* `--mocha`: Enable mocha as pytest reporter
* `--mocha-force-disable`: Disable mocha reporter even if enabled with `--mocha` flag


