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

https://github.com/codewithmmak/api-testing-pactumjs-mocha-javascript

API Testing using PactumJS Mocha and JavaScript
https://github.com/codewithmmak/api-testing-pactumjs-mocha-javascript

api-testing-framework

Last synced: 6 months ago
JSON representation

API Testing using PactumJS Mocha and JavaScript

Awesome Lists containing this project

README

          

---
# API Testing using PactumJS MochaJS and JavaScript
---

## Getting started

### Pre-requisites
* Download and install Node.js
* Download and install any Text Editor like Visual Code/Sublime/Brackets

### Setup Visual Code
* Install GitLens Extension from the Marketplace: `GitLens — Git supercharged by GitKraken`
* Install vscode-icons from the Marketplace: `vscode-icons`
* Go to Visual Code Preference > Setting and search `formatOnSave` and enable/ON it.

### Setup Scripts
* Clone the repository into a folder
* Go to Project root directory and install Dependency: `npm install`
* All the dependencies from package.json would be installed in node_modules folder.

### How to Run Test
* Go to Project root directory and run command: `npm test`

### How to view HTML report
* Go to Project root directory: `./mochawesome-report/mochawesome.html`

### Sample Test Results
![API Testing using PactumJS, MochaJS, and JavaScript Test Report](./assets/test-results-console.PNG?raw=true "API Testing using PactumJS, MochaJS, and JavaScript Test Report")

![API Testing using PactumJS, MochaJS, and JavaScript Test Report](./assets/test-results.png?raw=true "API Testing using PactumJS, MochaJS, and JavaScript Test Report")

![API Testing using PactumJS, MochaJS, and JavaScript Test Report Expanded View](./assets/test-results.png?raw=true "API Testing using PactumJS, MochaJS, and JavaScript Test Report Expanded View")