Is it possible to skip tests from the step definition? #274
-
|
From the documentation I have seen, it seems like steps can only return a pass or fail status after it is run. Steps are only returning a "skipped" status if the step definition is missing from the list of defined steps. Is there any way to send a "skipped" status from within the step definition if certain conditions are met? I know this can be done with a custom runner but was curious if there is already a built in way to do this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
@jmoney2341 yes this can be done with the custom |
Beta Was this translation helpful? Give feedback.
@jmoney2341 yes this can be done with the custom
Writer, that will mapPassedorFailedevents into aSkipped. We have a similarFailOnSkippedWriterthat does the opposite thing: mapsSkippedevent into aFailedpromoting it into an error.