Skip to content

Supertest, Jsonschema, Chai and Mocha framework to test API statuses, JSON Schema validation, error responses etc

Notifications You must be signed in to change notification settings

Alona-T/API-Automation-Supertest-JsonSchema-Chai-Mocha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

Framework for testing APIs and checking statuses, JSON Schema validation, type of keys etc

Features

  1. supertest (https://www.npmjs.com/package/supertest)
  2. jsonvalidation(https://www.npmjs.com/package/jsonschema)
  3. Chai http (https://www.npmjs.com/package/chai-http)
  4. Mocha (https://www.npmjs.com/package/mocha)

Getting Started

  1. Clone the project

  2. npm install

  3. to run tests use this command

  • npm run apitest

Mocha junit reporter

  1. Can work with Azure Devops
  • if you want to use this reporter you can run the command

npm run apitest:junit

About

Supertest, Jsonschema, Chai and Mocha framework to test API statuses, JSON Schema validation, error responses etc

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages