PyTest - Markers
Given this pytest.ini content:
And tests:
What happens when you run
[pytest]
markers =
smoke: quick smoke tests
regression: regression testsAnd tests:
@pytest.mark.smoke def test_smoke(): pass @pytest.mark.regression def test_regression(): pass @pytest.mark.performance def test_perf(): pass
What happens when you run
pytest -m performance?