This is a small set of API tests set up using SuperTest, Mocha, and Chai. These tests are aimed at testing “List Users” (GET) endpoint from (https://reqres.in/)
Below is a step-by-step process of how to setup this repo on your local computer (assuming a base level knowledge of Git and Github).
- Clone the repository to your local computer and checkout the main branch
- open the Folder containing the repo, and run
npm i
- Now you should be able to run all tests using the following command:
npm run test
The following tests should be the only ones to fail: 1) GET /users?page=wrongNum 2) GET /users?per_page=-5 these are currently failing because of possible bugs.
Documentation with requirements and parameters can be found here: Documentations
Defects have also been documented in the following document: Defects