Implementing Our Gherkin Parser: Parsing a Single Scenario

Learn about parsing a single scenario within the Gherkin parser class.

Parsing a single scenario and background

We will now work to parse a single Gherkin scenario and background structure. We will do this together because Gherkin’s backgrounds are similar to scenarios. If we look at the given example below, we can see that the two are structurally identical:

Get hands-on with 1400+ tech skills courses.