import pytest@pytest.mark.webtestdef test_send_http(): pass@pytest.mark.apptestdef test_devide(): pass@pytest.mark.androiddef test_search(): pass@pytest.mark.iosdef test_add(): passdef 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的
来源:https://www.cnblogs.com/QaStudy/p/11563931.html