跳转到主要内容

pytest插件,用于显示测试函数的行号

项目描述

pytest-lineno

pytest插件,用于显示测试函数的行号。

安装

pip install pytest-lineo

使用

pytest --show-lineno --verbose

输出应如下所示

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`

项目详情


下载文件

下载适合您平台的文件。如果您不确定选择哪个,请了解安装包的更多信息。

源代码分布

pytest-lineno-0.0.1.tar.gz (1.7 kB 查看散列)

上传时间: 源代码

构建分布

pytest_lineno-0.0.1-py3-none-any.whl (3.1 kB 查看散列)

上传时间: Python 3

由以下支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误记录 StatusPage StatusPage 状态页面