/nodejs-cucumber-selenium-docker-stack

Testing nodejs + Cucumber + Selenium + Docker stack

Primary LanguageJavaScriptMIT LicenseMIT

nodejs + Cucumber + Selenium + Docker stack

This repository is an experiment using nodejs, Cucumber, Selenium and Docker to run e2e tests and output a JSON Cucumber Report.

Running on docker

There are two scripts to help you with that.

Running using Chrome

./util-docker-build-and-run-on-chrome.sh 

Running using Firefox

./util-docker-build-and-run-on-firefox.sh 

Running on your local machine

Before executing this experiment, download the browser drivers that matches your installed browser version:

After downloading it, decompress it inside the current repository and install the nodejs dependencies:

npm install

Running using Chrome

SELENIUM_BROWSER=chrome npm test -- --tags @search --format json

Running using Firefox

SELENIUM_BROWSER=firefox npm test -- --tags @search --format json