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

Already on GitHub? Sign in to your account

JSON report : Handle placeholder in scenario outline title #510

Closed
mcapelle opened this Issue Apr 22, 2013 · 1 comment

Comments

Projects
None yet
2 participants

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
Owner

aslakhellesoy commented Apr 22, 2013

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

@brasmusson brasmusson closed this in #580 Sep 3, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment