Metadata-Version: 2.1
Name: pytest-iteration
Version: 0.1.0
Summary: Add iteration mark for tests
Home-page: https://github.com/hanzhichao/pytest-iteration
Author: Han Zhichao
Author-email: superhin@126.com
License: MIT license
Keywords: pytest,py.test,pytest-iteration,test iteration,pytest tester
Classifier: Framework :: Pytest
Classifier: Programming Language :: Python
Classifier: Topic :: Software Development :: Testing
Classifier: Programming Language :: Python :: 3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pytest
Requires-Dist: pytest-runner

# pytest-iteration
![Languate - Python](https://img.shields.io/badge/language-python-blue.svg)
![PyPI - License](https://img.shields.io/pypi/l/pytest-iteration)
![PyPI](https://img.shields.io/pypi/v/pytest-iteration)
![PyPI - Downloads](https://img.shields.io/pypi/dm/pytest-iteration)

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

## 安装方法
```shell
pip install pytest-iteration
```
## 使用方式
```python
# 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
```
使用以下命令指定迭代运行，支持指定多个迭代
```shell
pytest test_pytest_iteration.py --iteration=v2.0.0 
```

