Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What about background outlines #634

Closed
iby opened this issue Sep 11, 2014 · 2 comments
Closed

What about background outlines #634

iby opened this issue Sep 11, 2014 · 2 comments

Comments

@iby
Copy link

iby commented Sep 11, 2014

There's a recently asked question on SO about why backgrounds don't work with outlines. It is fairly obvious why they don't, but why shouldn't they? The proposition is to have background outlines similar to scenario outlines, when they are combined, the the scenario examples would overwrite / merge with the background ones.

Background Outline: Eating
  Given there are <start> cucumbers
  When I eat <eat> cucumbers

  Examples:
    | start | eat |
    |  1    |  1  |

Scenario Outline: Eating
  Then I should have <left> cucumbers

  Examples:
    | start | eat | left |
    |  12   |  5  |  7   |
    |  20   |  5  |  15  |

How do you think value of this vs. work required to implement relate to each other? That would definitely make some tests neater, but it feels this would be a pain to implement knowing the code a little bit?

@everzet
Copy link
Member

everzet commented Sep 12, 2014

Gherkin is not a programming language. Even though your example is by design overly simplistic, it does hurt my head already in attempt to figure out what it does. I can't even imagine what will it do with someone that never done programming before. So no.

@everzet everzet closed this as completed Sep 12, 2014
@iby
Copy link
Author

iby commented Sep 12, 2014

Lol, thought so.

Sent from my iPhone

On 12 Sep 2014, at 14:18, Konstantin Kudryashov notifications@github.com wrote:

Gherkin is not a programming language. Even though your example is by design is overly simplistic, it does hurt my head already in attempt to figure out what it does. I can't even imagine what will it do with someone that never done programming before. So no.


Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants