Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

JSON report : Handle placeholder in scenario outline title #510

Closed
mcapelle opened this Issue · 1 comment

2 participants

@mcapelle

Currently if I've got a feature file with a scenario outline like this :

Scenario Outline: Eating <eat> cucumbers
  Given there are <start> cucumbers
  When I eat <eat> cucumbers
  Then I should have <left> cucumbers

  Examples:
    | start | eat | left |
    |  12   |  5  |  7   |
    |  12   |  8  |  4   |

I've got in the JSON report (and also in HTML report)

Scenario Outline: Eating <eat> cucumbers
  Given there are 12 cucumbers
  When I eat 5 cucumbers
  Then I should have 7 cucumbers

Scenario Outline: Eating <eat> cucumbers
  Given there are 12 cucumbers
  When I eat 8 cucumbers
  Then I should have 4 cucumbers

Is it possible to also replace placeholders in Scenario Outline title ?

Scenario Outline: Eating 5 cucumbers
  Given there are 12 cucumbers
  When I eat 5 cucumbers
  Then I should have 7 cucumbers
@aslakhellesoy

It's not implemented but I like the idea. Can you send a pull request?

@brasmusson brasmusson closed this in #580
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.