pytest手动测试标记
项目描述
pytest-manual-marker
pytest手动测试标记。添加了收集手动、自动(默认)或两者的选项。
为手动测试添加不同的测试结果。
用法
# content of test_manual.py
import pytest
@pytest.mark.manual
def test_manual():
"""this needs a opt in and will report manual as test status"""
def test_automated():
"""this is a empty test just for shows"""
仅收集手动测试
$ pytest --collect-only -q --manual
test_manual.py::test_manual
1/2 tests collected (1 deselected) in 0.00s
仅收集自动测试
$ pytest --collect-only -q
test_manual.py::test_automated
1/2 tests collected (1 deselected) in 0.00s
收集手动和自动测试
$ pytest --collect-only -q --include-manual # collect both manual and automated tests
test_manual.py::test_manual
test_manual.py::test_automated
2 tests collected in 0.00s
安装
安装此插件:
! pip install pytest-manual-marker
项目详情
下载文件
下载适合您平台的应用程序。如果您不确定选择哪一个,请了解更多关于 安装软件包 的信息。
源分布
pytest_manual_marker-2.0.0.0.tar.gz (2.5 kB 查看哈希值)
构建版本
关闭
pytest_manual_marker-2.0.0.0.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 9af80aa20513fa8c58baa174b7d4b7a1ac3f88d76a9854c101e954b5843d1191 |
|
MD5 | 78b0ebcbdc01c4a5f6a2ab8a6031d256 |
|
BLAKE2b-256 | e5aa96b2aeac547000fa1dbddbf1cfc272cb51a54abc95e28621d1ae808cf48b |
关闭
pytest_manual_marker-2.0.0.0-py3-none-any.whl 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | d3656035d5f3bb1258c386252753f5cc88453c5a82e322151fbf7aa3890b7363 |
|
MD5 | 42fb7ca2798f6935ef3cfa7f41ce8635 |
|
BLAKE2b-256 | 8a916e2dc223e2e9712d52de24d972b47929b22841f5d0d9c95eb36f6c9453b9 |