cypress run specific test
snippet in javascript

cypress run specific test

user3984

cypress run --spec 'path/to/files/*.spec.js'

cypress run all files in folder

user1801

I think you're looking for --spec path/to/folder/*.js

You can run all the tests in a folder, or even in all subfolders of a folder

example:  --spec cypresss/integration/subsetA/**/*.js
would run all .js files in all folders under the "subsetA" folder in cypress/integration.

how to run cypress test

user3848

./node_modules/.bin/cypress run   // just cypress run wont work

hot to start cypress

user6770

npm install cypress                //takes about 3-5 minutes for entire process
./node_modules/.bin/cypress open   // just cypress run wont work

cypress run specific test

user5917

cypress run --spec path/to/file.spec.js