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 details)
Built Distribution
File details
Details for the file pytest-lineno-0.0.1.tar.gz
.
File metadata
- Download URL: pytest-lineno-0.0.1.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2.post20201201 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9859f54b3b4bdca8890f10c2bd3611aafb5abf24083b166a167ac0b1ec3ff84a |
|
MD5 | b0ce834bc8cd255a76759094ee5f8ca1 |
|
BLAKE2b-256 | 68b148f631f9f493b907cb6c4af87f7466a9d996f87e9f87e0d5d1e49c261e63 |
File details
Details for the file pytest_lineno-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: pytest_lineno-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2.post20201201 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c162631575ccbcd9a3bb9f547a9d23ec3fa397a87bccdb038a302f2dc77914c |
|
MD5 | 138a3ba30e778d0376f1e7a67ac78715 |
|
BLAKE2b-256 | 51932b0e6f5f4aae783815905b0170ac3778ee4060e4a0cccb75fd8d63c5b861 |