Skip to main content

Add iteration mark for tests

Project description

pytest-iteration

Languate - Python PyPI - License PyPI PyPI - Downloads

为用例增加用例状态s标记,运行用例时可以使用--iteration指定用例状态运行。

安装方法

pip install pytest-iteration

使用方式

# filename: test_pytest_iteration.py
import pytest

@pytest.mark.iteration('v2.0.0')
def test_a():
    pass
    
@pytest.mark.iteration('v2.1.0')
def test_b():
    pass

使用以下命令指定迭代运行,支持指定多个迭代

pytest test_pytest_iteration.py --iteration=v2.0.0 

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

pytest_iteration-0.1.0.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file pytest_iteration-0.1.0.tar.gz.

File metadata

  • Download URL: pytest_iteration-0.1.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.6

File hashes

Hashes for pytest_iteration-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ef7df97b95a7d0d38e8cdc412f8b9936ad3923b9549d9edb5dfab8f645113ea5
MD5 6629f948e36dcfa71b8c72a21373829e
BLAKE2b-256 899d861bac563c5d7fe26817dd20ba51b2e6a756aa43595a9901613d7375b68f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page