Skip to content

ScenarioOutline #27

@hadibadjian

Description

@hadibadjian

ScenarioOutline provides a neat way to evaluate a scenario with a given set of examples.

final class ExampleScenario: Feature {
  override func scenarios() {

    ScenarioOutline("Eating cucumbers")
      .Given("There are <start> cucumbers")
      .When("I eat <eat> cucumber")
      .Then("I should have <left> cucumbers")
      .Examples({
        "start": [12, 20],
        "eat": [5, 5],
        "left": [7, 15]
      })
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions