Skip to content
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

Use cucumber --fast-fail to stop on error #90

Merged
merged 1 commit into from
Mar 1, 2019

Conversation

Cruikshanks
Copy link
Member

Prior to this change we handled telling Cucumber whether to quit or not should an error occur and stop_on_error is set.

However whilst looking into another change I spotted that Cucumber now has a --fail-fast option built in.

So the main thrust of this change is to use this rather than hand crank our own. This meant though that the logic to determine what arguments to set for cucumber which we pass to ParallelTests first needed to know about the flag.

I decided this meant the method which generates the arg now needed to access the configuration for multiple attributes, none of them actually to do with parallel tests.

Hence this change also refactors the ParallelConfiguration and Configuration to move the logic into Configuration. We also changed how ParallelConfiguration is initialized as it already needed access to config attributes, but now it also needed to access our new helper method for the cucumber arg.

Prior to this change we handled telling Cucumber whether to quit or not should an error occur and `stop_on_error` is set.

However whilst looking into another change I spotted that Cucumber now has a `--fail-fast` option built in.

So the main thrust of this change is to use this rather than hand crank our own. This meant though that the logic to determine what arguments to set for cucumber which we pass to ParallelTests first needed to know about the flag.

I decided this meant the method which generates the arg now needed to access the configuration for multiple attributes, none of them actually to do with parallel tests.

Hence this change also refactors the `ParallelConfiguration` and `Configuration` to move the logic into `Configuration`. We also changed how `ParallelConfiguration` is initialized as it already needed access to config attributes, but now it also needed to access our new helper method for the cucumber arg.
@Cruikshanks Cruikshanks added the housekeeping Refactoring, tidying up or other work which supports the code label Mar 1, 2019
@Cruikshanks Cruikshanks self-assigned this Mar 1, 2019
@Cruikshanks Cruikshanks merged commit 92826bf into master Mar 1, 2019
@Cruikshanks Cruikshanks deleted the use-cucumber-fail-fast-arg branch March 1, 2019 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
housekeeping Refactoring, tidying up or other work which supports the code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant