-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement the --expand option in legacy_formatter
Remove @wip-new-core from scenarios passed by this. The change from #700 is merged and working in both the v1.3.x branch and in the master branch, so now it is time to close cucumber/gherkin#165.
- Loading branch information
1 parent
f02823b
commit 84eb09c
Showing
6 changed files
with
280 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
84eb09c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The handling of indentation of the source designations does not work perfectly in together with the
--expand
option.First the source hash for instantiated scenario and steps are indented four steps further to the left compared to the scenario outline itself - since the left most character of the instantiated scenarios and steps is indented four steps further to the left compared to the left most character scenario outline and steps (rspec spec).
Then, the instantiated steps are not considered in the calculation of max width, so if an instantiated step becomes very, very long it will push its source hash out of alignment. Instantiated scenario names that becomes very, very long is handled, so the following step sources will be aligned with source of the very, very long scenario name.
84eb09c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see what you mean. I don't think we need to worry about this for now.
Thanks @brasmusson!