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.1.0.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for pytest_mocha-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e059020352c6dc8903f20def284dfbe9a2c60988e011106c94fe86db214a6e0e |
|
MD5 | 53d66f18cee1f6f3375bc40b68722094 |
|
BLAKE2b-256 | 13d8d6a0acffeea6694bd068420b1a6ec0b11c35c7f97a5d40566b2b301d6d80 |