-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[Core] Clear RuntimeOptions.featurePaths if rerun was used #1631
Conversation
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.
Cheers. Looks good. Just not sure about the scope of isRerun
. But I can't come up with a test case to make it break just now.
@@ -69,6 +69,7 @@ public String map(String keyword) { | |||
private boolean wip = false; | |||
private SnippetType snippetType = SnippetType.UNDERSCORE; | |||
private int threads = 1; | |||
private boolean isRerun = false; |
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 think this may need to be method scoped.
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.
Ah. Got a test case.
A cucumber annotation or CLI with a non-empty rerun file. In combination with an environment variable without any features (neither via rerun nor as arguments). This will result in no features found while it should see the features from the rerun file.
Could you add a test case for that?
I've added a test case for that and added one more - if the is rerun file passed via cli and a feature it should ignore rerun file from cli -similar like it does to features. |
I'm having some trouble finding a test which uses: CLI: I think this will result in no feature files being selected to execute. Could you point it out to me? |
@@ -67,6 +67,7 @@ public String map(String keyword) { | |||
private boolean strict = false; | |||
private boolean monochrome = false; | |||
private boolean wip = false; | |||
private boolean wasRerun = false; |
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 don't think this variable is needed.
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.
right!
There was no such test with rerun file so i've added one. In that case behaviour is the same like passing features with line to cli - line numbers are ignored and only tags are used. |
All good now. Cheers! |
Summary
Fixes: #1630
How Has This Been Tested?
Unit tests and a test run on my laptop
Types of changes
Checklist: