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 really annoying.
Is there a way to toggle only running one test in Cypress
?
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
to run only one file
or using glob patterns:
to run only one test in a file
You can use a
.only
as described in the Cypress docsAlso, you can do the same with
describe
andcontext
blocksedit:
there’s also a nice
VSCode
extension to make adding/removing.only
‘s easier with keyboard shortcuts. It’s called Test Utils (install withext install chrisbreiding.test-utils
). It works with js, coffee, and typescript: