{"id":21480458,"url":"https://github.com/codewithmmak/api-testing-axios-mocha-chai-javascript","last_synced_at":"2025-07-15T12:31:59.664Z","repository":{"id":37501844,"uuid":"505925564","full_name":"codewithmmak/api-testing-axios-mocha-chai-javascript","owner":"codewithmmak","description":"This is sample REST API Automation framework designed using Axios, Mocha, Chai, and JavaScript","archived":false,"fork":false,"pushed_at":"2024-10-29T19:14:21.000Z","size":237,"stargazers_count":3,"open_issues_count":10,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-29T21:28:29.344Z","etag":null,"topics":["api-testing-framework","axios-http","chai","fakerjs","javascript","mocha","mocha-chai","mochawesome","properties-reader","rimraf"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codewithmmak.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-21T16:39:38.000Z","updated_at":"2023-02-20T18:56:52.000Z","dependencies_parsed_at":"2023-01-30T01:30:59.543Z","dependency_job_id":"a4b9ff30-5f62-4aac-a934-cfaf71f4b7f1","html_url":"https://github.com/codewithmmak/api-testing-axios-mocha-chai-javascript","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithmmak%2Fapi-testing-axios-mocha-chai-javascript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithmmak%2Fapi-testing-axios-mocha-chai-javascript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithmmak%2Fapi-testing-axios-mocha-chai-javascript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithmmak%2Fapi-testing-axios-mocha-chai-javascript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codewithmmak","download_url":"https://codeload.github.com/codewithmmak/api-testing-axios-mocha-chai-javascript/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226038782,"owners_count":17564046,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-testing-framework","axios-http","chai","fakerjs","javascript","mocha","mocha-chai","mochawesome","properties-reader","rimraf"],"created_at":"2024-11-23T12:15:12.920Z","updated_at":"2024-11-23T12:15:13.537Z","avatar_url":"https://github.com/codewithmmak.png","language":"JavaScript","readme":"---\n# API Automation using Axios, Mocha, Chai and JavaScript Setup Guide\n---\n\n## Getting started\n\n### Pre-requisites\n* Download and install Node.js\n* Download and install any Text Editor like Visual Code/Sublime/Brackets\n\n### Setup Visual Code\n* Install GitLens Extension from the Marketplace: `GitLens — Git supercharged by GitKraken`\n* Install vscode-icons from the Marketplace: `vscode-icons`\n* Go to Visual Code Preference \u003e Setting and search `formatOnSave` and enable/ON it.\n\n### Setup Scripts \n* Clone the repository into a folder\n* Go to Project root directory and install Dependency: `npm install`\n* All the dependencies from package.json would be installed in node_modules folder.\n\n### How to write Test\n* Add new test under `api-tests` folder\n* Name the file as \u003ctestname\u003e.js (e.g. get_request.js)\n\n### How to Run Test\n* Go to Project root directory and run command: `npm test`\n* If you want to run api tests then run command: `npx mocha --recursive api-tests/*.js --timeout 10000 --reporter mochawesome`\n\n### How to Update local npm packages\n* Go to Project root directory and run command: `npm update`\n\n### How to view HTML report\n* Go to Project root directory: `./mochawesome-report/mochawesome.html`\n\n### Sample Test Results\n![API Automation using Axios, Mocha, Chai and JavaScript Test Report](./assets/test-results.png?raw=true \"API Automation using Axios, Mocha, Chai and JavaScript Test Report\")\n\n![API Automation using Axios, Mocha, Chai and JavaScript Test Report Detailed View](./assets/test-results-detailed-view.png?raw=true \"API Automation using Axios, Mocha, Chai and JavaScript Test Report Detailed View\")\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewithmmak%2Fapi-testing-axios-mocha-chai-javascript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodewithmmak%2Fapi-testing-axios-mocha-chai-javascript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewithmmak%2Fapi-testing-axios-mocha-chai-javascript/lists"}