Use new API for running Cucumber #3995
Open
+518
−7,163
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR changes the Cucumber runner integration to use Cucumber's JavaScript API rather than the now-deprecated
Cli
class. Closes #3317.The size of the code change is pretty small since we can now pass in an argv array to Cucumber's
loadConfiguration
function without having to convert it to an options object.Some of the tests from
test/cucumber-integration-tests
are failing for me locally, but are hitting issues at the Nightwatch level and fail in the same way onmain
- I'll try to get these fixed up if I can, and perhaps add some more.One thing I wasn't sure about was - given this will only work with cucumber-js 10.3.1 and above - is whether I should keep the existing
Cli
-based implementation in place for now and check the version from Cucumber to decide which one to use. I'd be happy to add this in if it's considered valuable.(Raising as draft so as to get some eyes on this early - feedback welcome.)