-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Behavior of fail-fast flag on 4.1.23? #6290
Comments
That's a breaking change introduced in #6275. We've got the problem too. |
@Verest do you have any ideas how to solve this? Is it possible to check whether the value is an int (new behavior) or a path? |
I looked and the section responsible for setting the arguments is within Symfony's documents state that a From a cursory look, it seems In retrospect, this shoulda been merged into develop as it does seem to be a breaking change. That said, I do not think this is a bug, rather expected behavior based on the Symfony docs. |
I am running into issues adding unit tests themselves to test this. The |
I think that we have to revert fail-fast change in 4.1 branch. |
Reverted in 4.1.26 @Verest I merged your feature to 5.0 branch, which should be released in a few weeks. You can keep using 4.1.25 if you really need this feature. |
What are you trying to achieve?
Running tests inside of a Gitlab Pipeline. Expected to have folder specified in command line to be run only.
What do you get instead?
All tests ran, causing issues with our Pipeline
I saw fail-fast has been changed in 4.1.23, I set pipeline to 4.1.22 and it's working. Seems like if a default is not provided, it considers the path as a value to the flag or something? As you can see, the message 'Running tests in folder XXX' is actually running everything. I picked up on this because we have around 100 unit tests, and I saw that codecept started running everything(328).
It was my bad to keep ^4.0 in the pipeline, but I didn't expect the problem to be of this nature. --fail-fast without a number shouldn't be an impediment for folder path provided at the end.
Details
The text was updated successfully, but these errors were encountered: