Cypress: run only one test

前端 未结 6 1224
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-31 07:04

I want to toggle only running one test, so I don\'t have to wait for my other tests to see the result of one test.

Currently, I comment out my other tests, but this is r

6条回答
  •  天涯浪人
    2021-01-31 07:20

    To run a specific file through Terminal:

     npx cypress run --record --spec "cypress/integration/my-spec.js"
    
     npm run cypress -- --record --spec "cypress/integration/my-spec.js"
    

提交回复
热议问题