The minimal setup to work with CucumberJS and Selenium web drivers for Chrome and Firefox.
- Download and unpack the web driver for Chrome: https://chromedriver.storage.googleapis.com/index.html
- Download and unpack the web driver for Firefox: https://github.com/mozilla/geckodriver/releases
- Adjust the
PATHenvironment variable to include the directory where the web drivers reside npm install
npm run cukes - by default, it runs all .feature files in test/features folder, excluding those tagged with @todo and @manual using Chrome web driver.
To run a particular tag:
npm run cukes -- -t @example
Note: arguments to the underlying command (CucumberJS in this case) are passed after the double dash --.
Just set the environment variable:
BROWSER=firefox npm run cukes
Happy cukes coding!