This project is all about learning api testing using cypress.
- Create a empty directory of the project name
- Open it in the IDE and open the terminal
- Run
npm init
. It will createpackage.json
. - Run
npm install cypress
- Rum
npx install open
or./node_modules/.bin/cypress open
. It will create some example code and folder structure for you. You can delete the examples and start your own project to work on.Happy coding !
- Start stub server using
npm run stubs
- Run the API tests using
npm run test
Using faker.js
Using json-server
npm i --D mocha mochawesome mochawesome-report-generator
- Test report will created under testOutput/