Mark tests & Parameterisation
Mark tests
@pytest.mark.markName
def test_thing():
...pytest -m markName
# only tests marked with markNameExample markNames
slow - for slow tests
skip(reason="asdf") - for skipping tests that are not needed
xfail(reason="asdf") - for ones that you know are going to fail
Parametrize
@pytest.mark.parametrize("x, y", [(1, 3),
(4, 12),
(6, 11)])
def test_name(x, y)
assert func(x) == y