A testdox format reporter for pytest
Project description
A TestDox format reporter for pytest
Install
pip install pytest-testdox
Usage
Add the parameter –testdox when running pytest. Ex:
pytest --testdox your-tests/
Tip: If you don’t want to type --testdox every time you run pytest, add it to addopts in your ini file. Ex:
# content of pytest.ini
# (or tox.ini or setup.cfg)
[pytest]
addopts = --testdox
Configuration file options
testdox_format
Specifies TestDox report format, plaintext or utf8 (default: utf8). Ex:
# content of pytest.ini
# (or tox.ini or setup.cfg)
[pytest]
testdox_format = plaintext
$ pytest test_demo.py ============================= test session starts ============================== platform darwin -- Python 3.5.0, pytest-3.0.7, py-1.4.33, pluggy-0.4.0 rootdir: /private/tmp/demo, inifile: pytest.ini plugins: testdox-dev collected 2 items test_demo.py Pytest Testdox [x] prints a BDD style output to your tests [x] lets you focus on the behavior
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pytest-testdox-1.0.1.tar.gz
(4.8 kB
view hashes)
Built Distribution
Close
Hashes for pytest_testdox-1.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f42e5b79c39f0788a803f12cbdbf985411885c13d28eea3c3f093da23be416c7 |
|
MD5 | e28df42d89bc81cea94121fc9435beb0 |
|
BLAKE2b-256 | cd19f8b6b3f47837f5901091c48739681e399c95b2d79a4b462296c98f342f28 |