pytest_按标记执行
import pytest
@pytest.mark.webtest
def test_send_http():
pass
@pytest.mark.apptest
def test_devide():
pass
@pytest.mark.android
def test_search():
pass
@pytest.mark.ios
def test_add():
pass
def test_plus():
pass
-m 是标记
-s 显示内部打印信息
pytest -s test_mark.py -m 'not ios' 执行标记不等于ios的
pytest -s test_mark.py -m ios 只执行标记==ios的
pytest -s test_mark.py -m=ios 只执行标记==ios的