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
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.3.0.tar.gz
(3.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pytest-mocha-0.3.0.tar.gz.
File metadata
- Download URL: pytest-mocha-0.3.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b9b3094abf815fc2bdf56f7073aa08810c54d384d784644931328cf9afb2c3c
|
|
| MD5 |
c0f872fe2e1baf382e9d692845e496fe
|
|
| BLAKE2b-256 |
3964d50a89ecc5e60ae2ebcc9e2fe88ab1ebf7c9508c192a88588d506802a7eb
|
File details
Details for the file pytest_mocha-0.3.0-py2.py3-none-any.whl.
File metadata
- Download URL: pytest_mocha-0.3.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/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09dac359b767d5ddcafb8b5cfc5a5aa40866592ef726f3959667cd6d510b3973
|
|
| MD5 |
ed51dc4d327dffa7ca3361e754080e31
|
|
| BLAKE2b-256 |
65b59e077f17b81b726f1eeadf2d5eea4f88cfb1c4886a95d02618308e69d389
|