A pytest plugin to show the line numbers of test functions
Project description
pytest-lineno
A pytest plugin to show the line numbers of test functions.
Installation
pip install pytest-lineo
Usage
pytest --show-lineno --verbose
The output should look like:
tests/test_file.py:0::test_func PASSED [ 50%]
tests/test_file.py:5::TestClass::test_method PASSED [100%]
# ^^^
# By clicking `tests/test_file.py:5`,
# you can jump to `TestClass.test_method`
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-lineno-0.0.1.tar.gz
(1.7 kB
view hashes)
Built Distribution
Close
Hashes for pytest_lineno-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c162631575ccbcd9a3bb9f547a9d23ec3fa397a87bccdb038a302f2dc77914c |
|
MD5 | 138a3ba30e778d0376f1e7a67ac78715 |
|
BLAKE2b-256 | 51932b0e6f5f4aae783815905b0170ac3778ee4060e4a0cccb75fd8d63c5b861 |