Framework for testing APIs and checking statuses, JSON Schema validation, type of keys etc
- supertest (https://www.npmjs.com/package/supertest)
- jsonvalidation(https://www.npmjs.com/package/jsonschema)
- Chai http (https://www.npmjs.com/package/chai-http)
- Mocha (https://www.npmjs.com/package/mocha)
-
Clone the project
-
npm install
-
to run tests use this command
- npm run apitest
- Can work with Azure Devops
- if you want to use this reporter you can run the command
npm run apitest:junit