Closed tony-teknique closed 5 years ago
I have been trying to repeat only one of the parameterised tests through pytest.param, but I have not been able to get anywhere. Is it a known limitation with the pytest-repeat plugin?
pytest.param
@pytest.mark.parametrize("name", [pytest.param("John", marks=pytest.mark.special), pytest.param("Ted", marks=pytest.mark.special), pytest.param("Ben", marks=pytest.mark.repeat(10)) ]) def test_print_name(name): print(name)
Pytest-repeat cannot be used indirectly, as parameterization happens before the mark shows
Thanks! That's useful to know.
I have been trying to repeat only one of the parameterised tests through
pytest.param
, but I have not been able to get anywhere. Is it a known limitation with the pytest-repeat plugin?