Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/rathorsunpreet/simpleapitestinterface
- Owner: rathorsunpreet
- License: mit
- Created: 2023-06-21T21:19:30.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-11-27T19:00:19.000Z (about 1 month ago)
- Last Synced: 2024-11-27T20:18:49.124Z (about 1 month ago)
- Topics: 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
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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/)