Open dimko opened 3 years ago
Thanks @dimko for this feedback ! In the current version it is not possible to mark specific steps.
However you can use pytest.xfail()
and pytest.skip()
directly in the test code instead, this works fine (see documentation).
In the future, we could imagine to support usage of pytest.param(..., marks=)
around each step name such as :
@test_steps('step_a', pytest.param('step_b', marks=pytest.mark.foo), 'step_c')
def test_blah():
...
I guess that this would be the most natural way to declare marks on specific steps.
Thanks @smarie!
Hello, is it possible somehow when using generator steps to mark a specific step, for example, with the @pytest.mark.xfail, skip or other marks? Thank you in advance.