Skip to content

Automation API Testing using Jest, Jest-html-reporters, Chai

Notifications You must be signed in to change notification settings

Krizaldiw/Jest_API_Automation

Repository files navigation

API Automation Testing with Jest

This application you can run on NODE JS

Step by step

  • Install Node JS
  • Create directory your-jest-automation
mkdir my-test-project
  • Install Jest, Chai, Supertest, jest-html-reporters
npm install jest chai supertest jest-html-reporter --save-dev
  • Run Test
npm run test spec/folderName/tryJest.test.js
  • NPM Install on terminal
  • Corret Jest.io after NPM Install has successfully install
  • Corret Supertest Library after NPM Install has successfully install

NOTE

  1. Create a Test file in the ./spec folder
  2. Create a function if the request is always reused
  3. Don't display the credentials in the test file, save them in the configuration
  4. Don't push your project direct to master(production) but we have stage development --> master
  5. Don't forget to pull

Contact

Name - @Krizaldiw - muhkhalifrizaldiw@gmail.com

Releases

No releases published

Packages

No packages published