Hire QA – Specialized in QA Recruitment, Technical Interviews and Testing Solutions

Execute Cypress Test Scripts Command Line

Category: Cypress
Execute specific cy.js file - npx cypress run --spec 

Execute all cy.js files under the folder - npx cypress run --spec 

Execute the cy.js file in Chrome browser (it will run the scripts in headless mode) - npx cypress run --spec  --browser=chrome

Execute the cy.js file in Chrome browser (it will run the scripts in headed mode) - npx cypress run --spec  --browser=chrome --headed

Leave a Reply

Your email address will not be published. Required fields are marked *