This project is contain API testing using CucumberJS
Tools:
- CucumberJS for test framework
- Chai for test assertion
- Supertest for HTTP request module
How to setup:
Clone this repository
Install the dependencies (Need NodeJS & NPM)
npm install
Rename the file
env.exampleto.env
How to run:
For all tests
npm run test
For specific feature using tags
npm run test -- --tags "@post"
Report:
- The file report will be generated in HTML and saved to
reportsdirectory - Allure report also will generated, open it using this command
npm run report