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.2.1.tar.gz
(3.5 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.2.1.tar.gz.
File metadata
- Download URL: pytest-mocha-0.2.1.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
782784bf7d12cc6620742b223e05aba409f00fe0cd95f1d944a3f0e0c435d41d
|
|
| MD5 |
8896750994ae4668edf858ebf5ae0e91
|
|
| BLAKE2b-256 |
fd9358500986ad1e64704f01b76bbcccdc6df33888faec90c9faf5233de68d46
|
File details
Details for the file pytest_mocha-0.2.1-py2.py3-none-any.whl.
File metadata
- Download URL: pytest_mocha-0.2.1-py2.py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3bac90f4785281abcbb9d2c1f5bd85c7e4fe9b6af65f08b08a4364332610eecd
|
|
| MD5 |
8bb17079b369677c2f6b5ba74711c0f2
|
|
| BLAKE2b-256 |
e8253a7ec7a07665c028db1ff84537acf28339298cbe9f44581b5b904822510d
|