-
-
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
Custom separator support for rerun formatter #930
Conversation
What's the use case for this? It's printed with new lines to make it easier to read. Parsing the rerun file relies on it being newline separated |
It is easier to copy a single line from the terminal and append it to the end of the previous command, so you can rerun the failing tests quickly without using a file. |
The point of the rerun file is so you would just specify it instead of having to copy and paste anything.
Is there a reason you prefer copy / pasting as opposed to that? |
Eg. copy the last line from a CI log and re-run it locally. |
Okay cool. Thanks for the explanation. Couple things I think this PR still needs
|
Ok, I will do it soon. |
6907407
to
b4a87ab
Compare
Done. |
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.
Sorry took me a while to get around to this. One last update needed and this will be merged. Thanks!
}) | ||
_.each( | ||
[ | ||
{ separator: null, label: 'default' }, |
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.
For this case, if I log the output it is features/a.feature:1nullfeatures/b.feature:2
. I believe it should be switched to undefined in order to trigger the default case.
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.
Nice catch. Actually I needed to define both the option and the expected separator.
Hi @kmate, Thanks for your making your first contribution to Cucumber, and welcome to the Cucumber committers team! You can now push directly to this repo and all other repos under the cucumber organization! 🍾 In return for this generous offer we hope you will:
On behalf of the Cucumber core team, |
Released in 3.0.4 |
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. |
Allows to change the separator in the rerun formatter, eg.
--format-options '{ separator: " " }'
. This way you can get the list of failing tests in a single line that could be handy sometimes.