artemdwo / superTestMeApi

A set of example tests that use SuperTest, Mocha and Chai

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

supertestmeapi

What's that?

The repo contains a set of tests for a dummy API (http://dummy.restapiexample.com/) developed as an example of SuperTest usage with Mocha and Chai for API Testing.

What's it for?

Tests development have been done as a part of research around API testing tool discovery.

What's included?

API abstraction

SuperTest - is a high-level abstraction for testing HTTP (https://github.com/visionmedia/supertest)

Framework\Runner

Mocha - JavaScript test framework (https://mochajs.org)

Assertions

Chai - BDD / TDD assertion library (http://www.chaijs.com)

How to use

  1. Clone the repo
  2. Install all the dependencies
$ npm install
  1. Run the tests
$ npm test

Happy coding & testing !

About

A set of example tests that use SuperTest, Mocha and Chai


Languages

Language:JavaScript 100.0%