View Code? Open in Web Editor
NEW
This is sample REST API Automation framework designed using Axios, Mocha, Chai, and JavaScript
License: MIT License
api-testing-axios-mocha-chai-javascript's Introduction
API Automation using Axios, Mocha, Chai and JavaScript Setup Guide
- Download and install Node.js
- Download and install any Text Editor like Visual Code/Sublime/Brackets
- 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.
- 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.
- Add new test under
api-tests
folder
- Name the file as .js (e.g. get_request.js)
- Go to Project root directory and run command:
npm test
- If you want to run api tests then run command:
npx mocha --recursive api-tests/*.js --timeout 10000 --reporter mochawesome
How to Update local npm packages
- Go to Project root directory and run command:
npm update
- Go to Project root directory:
./mochawesome-report/mochawesome.html
api-testing-axios-mocha-chai-javascript's People
Contributors
Watchers
api-testing-axios-mocha-chai-javascript's Issues
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
Open
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
Detected dependencies
npm
package.json
@faker-js/faker ^8.0.2
axios ^1.4.0
chai ^4.3.7
mocha ^10.2.0
mochawesome ^7.1.3
properties-reader ^2.2.0
rimraf ^5.0.1