rquellh / testcafe-cucumber

Integration of TestCafe and CucumberJS
MIT License
95 stars 59 forks source link

Adding TestCafe Command Line Interface when running my OSX tests throw error: unknown option #22

Open bennymeade opened 5 years ago

bennymeade commented 5 years ago

Hello, hope somebody can help. I have successfully been running all my TestCafe Cucumber tests on OSX with: ./node_modules/.bin/cucumber-js

I have also been able to run: $ ./node_modules/.bin/cucumber-js --world-parameters '{"browser": "firefox"}'

But I cannot add other TestCafe Command Line Interface when running my tests, as they are not recognised. Example: $ ./node_modules/.bin/cucumber-js --skip-js-errors error: unknown option `--skip-js-errors'

In fact it seems I can only use commands from these docs: https://github.com/rquellh/testcafe-cucumber/wiki/Running-Tests

Is there a restriction here I am not aware of?

maxharding4 commented 5 years ago

Hi @bennymeade , did you ever find a work around for this?

Cheers,

bennymeade commented 5 years ago

@maxharding4 Nope, for the 'js-errors' our developers removed those errors. I commonly use these run commands now:

$ ./node_modules/.bin/cucumber-js --world-parameters '{"browser": "chrome"}' $ ./node_modules/.bin/cucumber-js --world-parameters '{"browser": "chrome:headless"}' $ ./node_modules/.bin/cucumber-js --name "Cucumber JS Scenario Name" $ ./node_modules/.bin/cucumber-js features/homePage.feature $ ./node_modules/.bin/cucumber-js --name "Cucumber JS Scenario Name" --world-parameters '{"browser": "chrome:headless"}' etc

maxharding4 commented 5 years ago

Thanks for replying @bennymeade, will probably be a while until the errors are removed from the page I'm looking at!