Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/rathorsunpreet/simpleapitestinterface

Simple CLI for test suites written using Mocha, Chai and Supertest.
https://github.com/rathorsunpreet/simpleapitestinterface

api-test api-testing api-tests chai javascript mocha mocha-chai mocha-js mocha-testing mocha-tests mochajs mochawesome mochawesome-report supertest supertest-mocha-chai

Last synced: 1 day ago
JSON representation

Simple CLI for test suites written using Mocha, Chai and Supertest.

Awesome Lists containing this project

README

        

# Simple API Test Interface

Simple API Test Interface is an API Test Interface which uses command-line arguments supplied during the execution to perform certain actions.

This interface allows users:
- to create multiple test suites or singular test cases
- execution of all test suites or a single suite
- report generation of the executed suite(s)

The API used in this project is [Reqres.in](https://reqres.in/).

Demo/Usage/Installation: https://www.youtube.com/watch?v=4jL9hjtmDRA

## Installation

Download the package from [Github](https://github.com/rathorsunpreet/SimpleAPITestInterface) and unzip it.

```console
# Installs dependencies
npm install

# If the above does not work, then
npm install --only=dev
```

## Usage

```node
# To view the help message
npm run test help

# To view the list of available suites
npm run test list

# To execute test suite(s)
npm run test users registration

# To generate HTML report
npm run test users report registration
```

## License

[MIT](https://choosealicense.com/licenses/mit/)