-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Trim paths from @rerun files #660
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,3 +85,21 @@ Feature: Rerun Formatter | |
| A - ambiguous | | ||
| B - pending | | ||
| C - undefined | | ||
|
||
Scenario: rerun file with trailing new line | ||
Given a file named "@rerun.txt" with: | ||
""" | ||
features/c.feature:2 | ||
|
||
""" | ||
When I run cucumber.js with `-f json @rerun.txt` | ||
Then the exit status should be 0 | ||
And the json output has the scenarios with names | ||
| NAME | | ||
| C - passing | | ||
|
||
Scenario: empty rerun file | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a change in behavior. Previously an empty rerun file also ran all the feature files in the current directory There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I agree with this change in functionality. |
||
Given an empty file named "@rerun.txt" | ||
When I run cucumber.js with `-f json @rerun.txt` | ||
Then the exit status should be 0 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please also check that no scenarios run. |
||
And the json output has no scenarios |
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.
Please also check which scenarios ran.
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.
Added