Skip to content

← All questions

Scenario Outline with 20 Examples rows, or a CSV dataset? What do reviewers expect here

Example threads. These questions and answers were written by the SDODS team to document real problems and how to fix them. The people named are illustrative, not real users. Questions asked on this site are marked new.

We have a shipping tax table: twenty countries, each with a rate and an expected label on the confirmation page. I wrote it as a Scenario Outline and the feature file is now a wall of pipes — the twenty rows are longer than the rest of the file put together, and two of the rates are different on staging than they are on production.

I could move it into a CSV. But then the feature file no longer says what the expected behaviour is, and the whole point of Gherkin was that a person can read it.

Where do people draw the line? Is there a row count where an Outline stops being the right thing?

3 answers

Know the answer?

Wrap commands and output in triple backticks and they will render as a code block.

Checking whether you’re signed in…

Have a different question? Ask it.

Related