This repository purpose is automation of functional API test of GorestCoIn
There are 2 test suites to perform complete CRUD API testing with chai-http plugin and with supertest npm library:
- CRUD API tests with CHAI-http plugin using dotenv, chance library and multiple reporters
- CRUD API tests with Supertest npm library using dotenv, chance library and multiple reporters
- Reporters - Allure and Junit with report generated on test results
-
Clone this repository or unzip downloaded file
-
Install dependencies with "npm install"
-
To run tests - open terminal and navigate to the path of the cloned project and:
- run tests with npm test
- to generate report run : npm run posttest
- report is created in folder allure-report (index.html should be opened via Live server plugin in VSCode)