This repository contains an automated test suite using Cypress. The purpose of these tests is to verify the functionality of the product-api endpoints to ensure they meet the expected behaviors.
- Node.js and npm (Ensure you have Node.js v12 or above)
- Cypress: Installed as a dev dependency in this project
Create a file cypress.env.json in the root and it should look something like this:
{
"url_api": "https://api.yourservice.com/api/"
}
You can run the Cypress tests in two modes:
- Cypress Test Runner for debugging and developing tests
- Command: npx cypress open
- Headless Mode for CI/CD or fast local test runs
- Command: npx cypress run