错误:ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]
pytest: error: argument -m: expected one argument (via addopts config)
原因:pytest.ini里面-m应该去掉,因为没指定标签。
[pytest]
markers=smoke:冒烟测试system:系统测试
addopts=-v -s -m
testpaths=../pytest_test
应改为
[pytest]
markers=smoke:冒烟测试system:系统测试
addopts=-v -s
testpaths=../pytest_test