Skip to main content

pytest plugin to display test execution output like a mochajs

Project description

# pytest-mocha

Pytest output in [MochaJS]( format


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

# file examples/
def test_case():
'''Section :: subsection :: Should execute test'''

outputs this:

Section :: examples/
✓ 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

Project details

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
pytest_mocha-0.2.1-py2.py3-none-any.whl (5.9 kB) Copy SHA256 hash SHA256 Wheel py2.py3
pytest-mocha-0.2.1.tar.gz (3.5 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page