-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 formatter shows incorrect line number for steps in a Scenario Outline #1108
Comments
I've looked into this issue a bit further and I think I have pinpointed the location of the issue.
Before this step I'll continue looking for a possible fix tomorrow. Until then, any feedback is welcome! |
A fix has been committed to the cucumber-ruby-core project: cucumber/cucumber-ruby-core#129 and the issue will be handled there: cucumber/cucumber-ruby-core#128 |
I reopen this issue because issues with the Json Formatter, which indeed is part of this project, should be raised here and not in the cucumber-ruby-core project. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs. |
@brasmusson Do I understand correctly that this issue does not apply to Cucumber 3.x? |
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. |
Configuration
Issue not present on Cucumber 1.3.20, that's why I assume it came with version 2.
Upon further inspection, it seems the introduction of Cucumber Core caused this issue
Summary
The line numbers given to a step in the json formatter is always the line number of the Example row. Because of this, it's not possible to distinguish the steps from each other, as the line number is their unique value.
Expected Behavior
In Cucumber 1.3.20 the correct JSON output is given, I've cut out the important pieces:
Note how the step line numbers are the same as the actual line number of the step.
Current Behavior
In cucumber 2.4.0 the following JSON output is given:
Context & Motivation
This issue has affected us at spriteCloud in the following way:
This is going fine with regular Scenario's, but when it is an Outline we're not able to link the screenshot to the step and thus we can't visualize the given error.
Your Environment
The text was updated successfully, but these errors were encountered: