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/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 hashes)
Built Distribution
Close
Hashes for pytest_mocha-0.4.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38b6fe5671c1c34efac959fffa48553dace1f6c089a647a52dba76c0d277185b |
|
MD5 | 247922a055d5530e058993ec6badb516 |
|
BLAKE2b-256 | ca96a26dd49f1c199d3bf4b212a91460a76d5609789b2e1927f4b2e10402e040 |