Run your API tests in fraction of seconds using SuperTest library. supertest gotta fluent API and it is very easy to use using jest runner. It hardly takes 1 min to write the test on any CRUD operation on APIs.
Steps to run:
Pre-req: One should have node & npm installed on their machine before running the tests.
Install Node & NPM:
Goto below URL, download Node and install it. You'are all set to run the tests.
https://www.npmjs.com/get-npm
- First of all clone this repo & open in an IDE
- Run
npm install
- Now run
npm test
If you want to run specific test suites like smoke or regression, then run below command.
You can add the spec files under these directories and that's it !
npm run smoke
npm run regression
results:
result report(index.html) is generated into results directory.