Skip to content

← All questions

Migrating a Cucumber suite: what replaces the World object we keep scenario state in?

Asked 5,290 views1 answer

Our Cucumber suite keeps everything on the World: the id of the record the last step created, the current user, a couple of counters, and a response object that three later steps read.

Feature files copy across fine and the tags lint clean. The step definitions are where I am stuck, because half of them are this.something = ... and there is no this to put it on.

asked by Rasha Halabi572 ·

1 answer

Know the answer?

Reviewed before it appears. Wrap commands and output in triple backticks and they will render as a code block.

Have a different question? Ask it.

Related