Add iteration mark for tests
Project description
pytest-iteration
为用例增加用例状态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
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_iteration-0.1.0.tar.gz
(3.5 kB
view hashes)