Skip to content

gostosohub/cypress-api-zero-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cypress-api-zero-project

This project is all about learning api testing using cypress.

Create a project and install Cypress

  1. Create a empty directory of the project name
  2. Open it in the IDE and open the terminal
  3. Run npm init. It will create package.json.
  4. Run npm install cypress
  5. 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 !

How to run the tests ?

  1. Start stub server using npm run stubs
  2. Run the API tests using npm run test

Created Stub data

Using faker.js

Created REST API

Using json-server

Intsall mochawesome-report-generator

  1. npm i --D mocha mochawesome mochawesome-report-generator
  2. Test report will created under testOutput/

Screenshot 2021-07-26 at 23 10 47

About

Cypress api test framework

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published