Skip to content

mdcruz/cypress-api-testing-framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cypress API test framework

This is an example repo on how to use Cypress to run API integration tests against http://jsonplaceholder.typicode.com/

Libraries and plugins used

Dependencies

To run the tests, please ensure you have the following installed:

  • Node
  • NPM

Why use Cypress

  • No other dependencies required to run tests as Cypress contains everything you need.
  • Setup is minimal
  • Cypress supports BDD and TDD style assertion syntax so this would already be familiar to engineers who have used other JavaScript testing libraries.
  • Cypress Test Runner useful in debugging your tests. You can also directly inspect from Chrome dev tools.

How to run

Clone the repo and Install the project dependencies npm i

To run the tests on your terminal, run npm run cy:test

To run the tests against the Cypress Test Runner, run npm run cypress open

Once the test runner has loaded, click on the spec file you wish to test.

About

An example framework using Cypress to test API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published