Home
Basics
Introduction Environment Setup Cypress Components First Test Running Tests Reports Element Identification GUI interaction Cypress Hooks Cypress Fixtures Integration with CI serversAdvanced
Page Object Model Custom Commands Intercepting Requests Backend Testing Interview Questions and AnswersRunning Cypress Tests
Cypress tests can be run in 2 ways.- Through dashboard UI
- Through command line
Cypress run command
- Run all tests -
npx cypress run
- Run specific test in a chrome browser -
npx cypress run --spec "cypress/e2e/title.cy.js" --browser chrome
- To specify different config - Use --config-file
- To specify environment variable - Use --env
- To display or hide browser when running tests - Use --headed and --headless
- To filter tests - Use --tag
- To use reporter - Use --reporter and --reporter-options
- To use different port - Use --port
- To run in parallel - Use --parallel
Web development and Automation testing
solutions delivered!!