- Run
brew install nvm
- To check if nvm is successfully install, use
nvm -v
- To install node.js (stable version), use
nvm install <node_version>
E.g.,nvm install 14
, this will install node.js version 14.X - To check if node.js is successfully install, use
node -v
- Run
npm install -g taiko
- To check if taiko is successfully install, use
taiko --version
- Run
brew install gauge
. - To check if gauge is successfully install, use
gauge -v
- Navigate to functional_tests folder using
cd functional_tests
. - To feed data for tests, run the
sql/dataSeed.sql
file in respective db. - Run using the command,
gauge run specs/ --env <env-name>
in default headless mode on dev environment.
(Note: You can change environment by replacing --env value.) - To run specific spec file,
gauge run specs/<SPEC-FILE> --env <env-name>
- To run all specs parallely,
gauge run specs/ --env <env-name> -p
. - To run with headless mode off, in
tests/AsrInitiative.js
fileconst headless = process.env.headless_chrome.toLowerCase() === 'true';
, replace true with false.
Note:
- All environment related properties are in the functional_tests/env
folder.
- Supported envs: local, dev, prod, test