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

JSON report : Handle placeholder in scenario outline title #510

Closed
mcapelle opened this issue Apr 22, 2013 · 2 comments · Fixed by #580
Closed

JSON report : Handle placeholder in scenario outline title #510

mcapelle opened this issue Apr 22, 2013 · 2 comments · Fixed by #580

Comments

@mcapelle
Copy link

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
Copy link
Contributor

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

@lock
Copy link

lock bot commented Oct 25, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants