-
-
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
Using a rerun file does not work when there is a trailing newline #657
Comments
This was actually the cause of a bug when I initially implemented rerun. An extra newline in the file causes every feature to be loaded (this is because empty string gets treated as if its cwd and each directory get expanded to all recursive features). Since this doesn't seem right, I think we should probably do two things.
If you'd like to just tackle number 1, I'm happy to point you in the right direction. 2 should be tackled separately whether you'd like to tackle it or not. |
I can take a shot at 1. If you could point me at where the relevant parsing happens that would be very helpful |
Here is where rerun files (files which start with a Given a file named '@rerun.txt' with:
# File content with an extra newline |
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. |
I opened up a file created by the rerun formatted in vim and saving it (causing a new line character to be appended to the file). Once the newline is present, it seems to be silently ignored by cucumberjs.
Steps to reproduce: (v1.3.1)
Expected result: Only the failing test is run again
Actual result: The rerun file seems to be skipped without an error or warning; all tests are run
The text was updated successfully, but these errors were encountered: