The idea of this project is to provide a simple cucumber test implementation
- Addition and multiplication of two numbers
- Validating a HTTP POST service response
a) Cucumber - Core Behavior Driven Development / Test facilitator b) Gulp - Gulp will be used to run the application ex: $gulp httptest c) express - run the express web application c) node-fetch, build-url - These packages will help us to GET/POST HTTP calls d) jsonpath, unexpected - Used to validate json response
##Install the following Run - "npm install" to accomplish the installation of these
If you want to run individually, you may run these with -g / --save-dev options to have it run locally
- npm install cucumber npm install -g cucumber npm install --save-dev cucumber
- npm install -g gulp
- npm install -g gulp-cli
- npm install -g gulp-shell
- npm install -g express
- npm install -g body-parser
- npm install -g node-fetch
- npm install -g build-url
- npm install -g jsonpath
- npm install -g unexpected
The example can be run by running the sample node server along with Gulp by calling as follows
node server\server.js
npm run-script httptest