react-native-detox-cucumber icon indicating copy to clipboard operation
react-native-detox-cucumber copied to clipboard

unknown option '--configuration'

Open jankowskimarcin opened this issue 5 years ago • 7 comments

Hello this command doesn't work for me $ node_modules/.bin/cucumber-js ./e2e/features --require-module @babel/register --configuration ios.sim.debug error: unknown option '--configuration'

jankowskimarcin avatar Oct 02 '20 07:10 jankowskimarcin

You can use the DETOX_CONFIGURATION environment variable for this now: DETOX_CONFIGURATION=ios.sim.debug node_modules/.bin/cucumber-js ./e2e/features --require-module @babel/register

day-me-an avatar Apr 15 '21 15:04 day-me-an

@day-me-an You saved my day ! Thanks

AtanvarnoJack avatar Sep 07 '21 14:09 AtanvarnoJack

Hi, When I am trying to run DETOX_CONFIGURATION=android node_modules/.bin/cucumber-js it gives me error 'DETOX_CONFIGURATION' is not recognized as an internal or external command Any ideas how to solve this? Thanks

VaclavKlic avatar Mar 26 '22 20:03 VaclavKlic

You can use the DETOX_CONFIGURATION environment variable for this now: DETOX_CONFIGURATION=ios.sim.debug node_modules/.bin/cucumber-js ./e2e/features --require-module @babel/register

In which file this needs to be ?

loupmasneri avatar May 24 '22 15:05 loupmasneri

Hi

This is your launch test script you can add it to a .sh file and / or add this call to your package.json scripts

AtanvarnoJack avatar May 24 '22 15:05 AtanvarnoJack

Okey this is how it must be in the package.json:

"cucumber:ios": "DETOX_CONFIGURATION=ios ./node_modules/.bin/cucumber-js ./e2e/cucumber --require-module @babel/register"

loupmasneri avatar May 24 '22 15:05 loupmasneri

how can I adapt this command to windows? "detox:e2e:android-debug": "DETOX_CONFIGURATION=android.emu.debug npx cucumber-js" What can I write instead of this one?

akemalc avatar Jun 17 '22 16:06 akemalc