Skip to main content

pytest plugin to display test execution output like a mochajs

Project description

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

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.4.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

pytest_mocha-0.4.0-py2.py3-none-any.whl (5.5 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: pytest-mocha-0.4.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for pytest-mocha-0.4.0.tar.gz
Algorithm Hash digest
SHA256 227998aa434885bf864348058d6280734878bb3a9088fcc752f49e892547f7db
MD5 2c6dec86ef4afa9d3ea72515ad2023d6
BLAKE2b-256 541697027c245c509231e71c3e30ce656f4c71042ddbb4ce09692619edd0fac8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytest_mocha-0.4.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using 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

File hashes

Hashes for pytest_mocha-0.4.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 38b6fe5671c1c34efac959fffa48553dace1f6c089a647a52dba76c0d277185b
MD5 247922a055d5530e058993ec6badb516
BLAKE2b-256 ca96a26dd49f1c199d3bf4b212a91460a76d5609789b2e1927f4b2e10402e040

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page