Skip to main content

pytest-mocha

Pytest output in MochaJS format

pytest-mocha

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

# 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

Release files for pytest-mocha 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytest-mocha 0.4.0
File Size Uploaded
pytest-mocha-0.4.0.tar.gz 3.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytest-mocha 0.4.0
File Interpreter ABI Platform
pytest_mocha-0.4.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 9.3 kB

Release files / pytest-mocha-0.4.0.tar.gz

Download URL pytest-mocha-0.4.0.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
227998aa434885bf864348058d6280734878bb3a9088fcc752f49e892547f7db
BLAKE2b-256 checksum
How to use checksums
541697027c245c509231e71c3e30ce656f4c71042ddbb4ce09692619edd0fac8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.6

Release files / pytest_mocha-0.4.0-py2.py3-none-any.whl

Download URL pytest_mocha-0.4.0-py2.py3-none-any.whl
Size 5.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
38b6fe5671c1c34efac959fffa48553dace1f6c089a647a52dba76c0d277185b
BLAKE2b-256 checksum
How to use checksums
ca96a26dd49f1c199d3bf4b212a91460a76d5609789b2e1927f4b2e10402e040
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.6

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

0.0.1

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page