Skip to main content

pytest plugin to display test execution output like a mochajs

Project description

# pytest-mocha

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

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


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

pytest-mocha-0.1.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

pytest_mocha-0.1.0-py2.py3-none-any.whl (5.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pytest-mocha-0.1.0.tar.gz.

File metadata

  • Download URL: pytest-mocha-0.1.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pytest-mocha-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e8f6ee030e7681d264bb06f0f7ee3572c607e3f32038318b29f6e001017c97fd
MD5 e47d3aa9917eb9f20bab846e7720b3be
BLAKE2b-256 a3339cf3f6c8b0bad64b4f33e230f8dcb061113c492685ce32875dc0ca97d261

See more details on using hashes here.

File details

Details for the file pytest_mocha-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_mocha-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e059020352c6dc8903f20def284dfbe9a2c60988e011106c94fe86db214a6e0e
MD5 53d66f18cee1f6f3375bc40b68722094
BLAKE2b-256 13d8d6a0acffeea6694bd068420b1a6ec0b11c35c7f97a5d40566b2b301d6d80

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