An open API service indexing awesome lists of open source software.

https://github.com/burhanh/automaton-v15

Automation testing framework (API) - an example. Based on JavaScript, Mocha, Chai, Supertest
https://github.com/burhanh/automaton-v15

automation chai javascript mocha nodejs rest-api supertest

Last synced: about 2 months ago
JSON representation

Automation testing framework (API) - an example. Based on JavaScript, Mocha, Chai, Supertest

Awesome Lists containing this project

README

          

# Automaton-v15

Automation testing framework (API) - an example. Based on JavaScript, Mocha, Chai, Supertest

[![GitHub](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/BurhanH/automaton-v15/blob/master/LICENSE)
[![Tests](https://github.com/BurhanH/automaton-v15/actions/workflows/node.js.yml/badge.svg)](https://github.com/BurhanH/automaton-v15/actions/workflows/node.js.yml)

This testing framework to test REST API for [https://api-flask-baur.herokuapp.com/](https://api-flask-baur.herokuapp.com/). Simple calls like GET, PUT, DELETE, POST.
Main goal was to show how to easy and fast to create a test framework for REST API on NodeJS.

## Requirements
NodeJS 12.* /14.* /16.*, Mocha 9.2.0,

Chai 4.3.4, Supertest 6.2.2

## Project structure
```text
-- automaton-v15
|-- .gitignore
|-- package-lock.json
|-- LICENSE
|-- package.json
|-- README.md
`-- test
|-- api-tests.js
```
## Documentation and Distributives

1. [nodejs](https://nodejs.org/en/)
2. [mocha](https://mochajs.org/)
3. [chai](https://www.chaijs.com/)
4. [supertest](https://github.com/visionmedia/supertest)