A rspec format reporter for Python ptest
Project description
A pspec format reporter for pytest
Install
pip install pytest-pspec
Usage
Add the parameter –pspec when running pytest. Ex:
pytest --pspec your-tests/
Tip: If you don’t want to type --pspec 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 = --pspec
Configuration file options
pspec_format
Specifies pspec report format, plaintext or utf8 (default: utf8). Ex:
# content of pytest.ini
# (or tox.ini or setup.cfg)
[pytest]
pspec_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: pspec-dev collected 2 items test_demo.py Pytest pspec [x] prints a BDD style output to your tests [x] lets you focus on the behavior
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-pspec-0.0.1.tar.gz
(4.9 kB
view hashes)
Built Distribution
Close
Hashes for pytest_pspec-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d4e1f679ce89c4b9e2fd9c660fe5873b189d386176a9741d397a40e7b1c9ad4 |
|
MD5 | 3e340f97bbb9fc915a433784ce5baa0b |
|
BLAKE2b-256 | 4486a8e10fe9c960c30804a4e3416f6b039356d4fc89690355ae7f67e597ecff |