apickli - cucumber-js: command not found

https://github.com/apickli/apickli
I’ve followed steps by the above link, however:


git@local MINGW64 /d/projects/apickli/apickli/source/test/features (master)
$ cucumber-js features/myapi.feature
bash: cucumber-js: command not found

D:\projects\apickli\apickli\source\package.json     has needed line:
        "test": "nohup node test/mock_target/app.js & npx cucumber-js test/ --tags @core",

 

Can someone please share the experience of apickli?

Solved Solved
0 2 1,549
2 ACCEPTED SOLUTIONS

Typically this results from a path issue. Can you check if cucumber-js is on your path and if it appears to be so check that the case of all the path elements is correct? For instance you might have c:\path\to\cucumber-js when your system requires C:\path\to\cucumber-js. 

Generally Apickli is quite straightforward to use. 

View solution in original post

Cucumber JS can be invoked from the ./node_modules directory of a project where the dependencies have been installed with npm.

For example: './node_modules/.bin/cucumber-js test/features/orders-apikey-header.feature'

See here for some examples:

https://github.com/cucumber/cucumber-js/blob/HEAD/docs/nodejs_example.md

https://github.com/markjkelly/apigee-x-hands-on 

View solution in original post

2 REPLIES 2

Typically this results from a path issue. Can you check if cucumber-js is on your path and if it appears to be so check that the case of all the path elements is correct? For instance you might have c:\path\to\cucumber-js when your system requires C:\path\to\cucumber-js. 

Generally Apickli is quite straightforward to use. 

Cucumber JS can be invoked from the ./node_modules directory of a project where the dependencies have been installed with npm.

For example: './node_modules/.bin/cucumber-js test/features/orders-apikey-header.feature'

See here for some examples:

https://github.com/cucumber/cucumber-js/blob/HEAD/docs/nodejs_example.md

https://github.com/markjkelly/apigee-x-hands-on