Running 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


                    
Complex problems, Simple Solutions