tblineinfo is a py.test plugin that insert the node id in the final py.test report when --tb=line option is used
Project description
Introduction
pytest-tblineinfo is a py.test plugin that insert the node id in the final py.test report when --tb=line option is used.
Rationale
By default in the --tb=line mode, py.test only report the python file and line where the assertion occurs. When the exception occurs in an helper or plugin function, it is not easy to relate the error with a test.
This plugin is intended to resolve this issue.
Installation
pip install pytest-tblineinfo
Usage
Simply call py.test with --tb=line once the plugin is installed, and the end report of py.test will prefix the errors with the test name.
Contributing
Sources are available either on bitbucket (mercurial repo) or github (git repo):
Pull request are welcomed !
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
Built Distribution
File details
Details for the file pytest-tblineinfo-0.4.tar.gz
.
File metadata
- Download URL: pytest-tblineinfo-0.4.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 637b639e8d3dd01718dcfa0a76ef31b8f65fe1f1ef84bb6e90a86638690ebf75 |
|
MD5 | 2b7bafe925e0be6f6b162f18629e6383 |
|
BLAKE2b-256 | 6848cf4c8b53edcd6559d9e6637121186c799b59ce6fb2ec23e8224f5aa9898d |
File details
Details for the file pytest_tblineinfo-0.4-py2.py3-none-any.whl
.
File metadata
- Download URL: pytest_tblineinfo-0.4-py2.py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b1e9e54ee1cbf3644773121c813eca3f991c0eaf3e6485f787570daab923fa7 |
|
MD5 | 76688c38181cb83697d857d979100a0a |
|
BLAKE2b-256 | dcda657150ded0568eaa68a0deffd54dcfdb5dd162aab676ff25998fda6df163 |