-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Use feature parameterized name for example display name #2743
Comments
I would welcome a PR that adds two properties:
Then given the feature: Feature: Examples Tables
Scenario Outline: Eating <eat> of <start> cucumbers
Given there are <start> cucumbers
When I eat <eat> cucumbers
Then I should have <left> cucumbers
Examples: These are passing
| start | eat | left |
| 12 | 5 | 7 |
| 20 | 5 | 15 |
Examples: These are failing
| start | eat | left |
| 12 | 20 | 0 |
| 0 | 1 | 0 | When the
When the
This can be implemented by changing the |
Hi everyone. I'd like to solve this issue by contributing to this awesome project which I'm using daily at work. Just have started working and informing in case of other people working on this issue |
Cheers! All yours. |
Inside Intellij Idea these examples are still shown as numbers instead of picke names. But I believe this might be related to Intellij Idea itself or Cucumber for Java plugin |
That will depend on how you run Cucumber. IDEA uses the You could create a new issue for the |
Yeah I know. I will open an issue for the TeamCity plugin. |
🤔 What's the problem you're trying to solve?
When I'm using junit4 to run my cucumber test, I can parameterized my feature scenario outline name and it was complete before execution phase to create X scenarios where display name was corresponding feature nawe with corresponding parameters value
Now i'm using junit-platform-engine and my example are executed with name "Example #1, Example #2..." so i'm loosing functional information about what my test is doing
Example :
Feature file :
Scenario Outline : My Contract with option
Given a contract with option
When I want to show it
Then I see the name of Contract
When using Junit4 I can see in execution tests details :
Now using Junit platform Engine (Junit5) I can see in execution tests details :
I don't know with business case is failed, I have to open the feature file and to count examples to find which one failed.
✨ What's your proposed solution?
Reuse junit4 mechanism to use parameterized display name if parameters are found in scenaio outline name
⛏ Have you considered any alternatives or workarounds?
I haven't find a workaround for the moment
📚 Any additional context?
The text was updated successfully, but these errors were encountered: