ekino / veggies

:sparkles: :rocket: Veggies is an awesome cucumberjs library for API/CLI testing. Great for testing APIs built upon Express, Koa, HAPI, Loopback and others. It's also the perfect companion for testing CLI applications built with commander, meow & Co.
https://ekino.github.io/veggies/
MIT License
90 stars 18 forks source link

Cucumber does not allow custom options anymore #67

Closed fthouraud closed 3 years ago

fthouraud commented 3 years ago

Hi there 👋

Since Cucumber 7, it seems that custom command-line options are not allowed anymore (cf. cucumber/cucumber-js#1666 & cucumber/cucumber-js#1474) and that's a shame.

So we now have a problem, because all our options now produce an error (except --tags): error: unknown option '-u'

We have to think of another way to handle custom options 😬

Edit 1: add a reference to the original issue on cucumber-js

Crow-EH commented 3 years ago

We should also tests that they are working in our CI. 😅

Crow-EH commented 3 years ago

@fthouraud the issue you linked has been flagged as a duplicate, please link to https://github.com/cucumber/cucumber-js/issues/1474 instead

Crow-EH commented 3 years ago

It seems that the only easy workarround is to use env variables

fthouraud commented 3 years ago

@fthouraud the issue you linked has been flagged as a duplicate, please link to cucumber/cucumber-js#1474 instead

I'm not sure it helps because none of the comments reveals the new official way to provide custom options: --world-parameters.