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

https://github.com/nibrazkhan/mocha_axios_api_testing

Tested an API using Mocha and axios framework by user interaction and created mochawesome report/
https://github.com/nibrazkhan/mocha_axios_api_testing

axios chai faker mocha mochawesome-report nodejs postman shelljs

Last synced: 3 months ago
JSON representation

Tested an API using Mocha and axios framework by user interaction and created mochawesome report/

Awesome Lists containing this project

README

          

# Mocha_Axios_API_Testing
### Prerequisites
- Install Nodejs latest version
- Install VS code latest version
### How to run this project
- Clone the repo
- Open termianl in the root folder\
- Give following commands:
```
npm init -y
```
```
npm test file ./user.test.js
```
**To create mochawesome report**, give following commands:
```
npm i mochawesome
```
```
npm start file ./User.test.js
```

### Screenshot
This is the screenshot of **mochawesome.html** report:

![mochawesome_report](https://user-images.githubusercontent.com/55280106/189231398-bc4d7723-05ba-45cc-95b4-01c80bb6b6db.png)