我的python测试代码中有几个标记:
@pytest.mark.slowtest
@pytest.mark.webtest
@pytest.mark.stagingtest
Run Code Online (Sandbox Code Playgroud)
例如,我能够使用标记选择性地运行测试 pytest -m slowtest
如何在不诉诸的情况下运行未标记的测试pytest -m "not (slowtest or webtest or stagingtest)"?
你可以想象,我们将来可能会使用其他标记......