Skip to content

JessicaFortes/portfolio-api-javascript-cypress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API Testing Portfolio with Cypress

Portfolio project focused on API test automation practices using Fake Store API.

Covered endpoints

  • GET /products
  • GET /products/:id
  • GET /products/categories
  • GET /products?limit=<n>
  • GET /products?sort=desc
  • GET /users/:id
  • GET /carts/user/:id
  • POST /auth/login

Test strategy

  • Contract validation with Joi schemas
  • Positive and negative scenarios per domain
  • Test data centralized in fixtures
  • Domain-based organization for specs, requests and contracts

Reporting

  • Mochawesome HTML report generated automatically after test execution
  • CI publishes the HTML report as a workflow artifact

Stack

  • Cypress
  • JavaScript
  • Joi
  • Mochawesome

Install

npm install

Run tests

npm run test

Run with production config:

npm run test-prod

Open Cypress UI:

npm run test-open-prod

About

Projeto desafio para teste de API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors