GitHub - codewithmmak/supertest-mocha-chai-javascript: This is a sample API Test Automation framework designed using SuperTest, Mocha, Chai, and FakerJS. And in this framework we will see some basic working examples for learning. · GitHub
CodeOpen more actions menu
Folders and files
NameNameLast commit message
Last commit date
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
View all files |
Repository files navigation
API Testing using SuperTest, Mocha, Chai, and FakerJS
---
the project if you like the work.
- Download and install Node.js
- Download and install any Text Editor like Visual Code/Sublime/Brackets
- Initilize the project with default settings npm init -y
- Install dependencies npm install --save-dev supertest mocha chai mochawesome @faker-js/faker
- Install GitLens Extension from the Marketplace: GitLens — Git supercharged by GitKraken
- 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 spec under test-reqres-api folder
- Add file and name the file as testname.js (e.g. deleteTest.js)
- Go to Project root directory and run command: npm test
- If you want to run another set of api tests then run command: npm run test-fakerest
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
💭 Checkout the blogs related to Software Testing on my website
About
This is a sample API Test Automation framework designed using SuperTest, Mocha, Chai, and FakerJS. And in this framework we will see some basic working examples for learning.
Topics
Resources
License
Stars
8
stars
Watchers
1
watching
Forks
Footer
You can’t perform that action at this time.