cypress icon indicating copy to clipboard operation
cypress copied to clipboard

Being able to disable cypress verify step

Open johansatge opened this issue 3 years ago • 1 comments

Hello!

What would you like?

I'd like to be able to disable the verification process (cypress verify) that is triggered on cypress run.

Why is this needed?

Our app that is running in Docker/Jenkins suffers of the timeout issue that was raised a few times (#4624 #6082)

We recently increased the timeout to 60s thanks to the new CYPRESS_VERIFY_TIMEOUT env variable; but the verification still timeouts from time to time.

Something that is not clear to me is the rationale behind this verification process 👇

  • Running it in a local environment as a "defensive" mechanism definitely makes sense, as:
    • Cypress may run on a broad range of configurations, and has specific requirements
    • The host configuration may have changed between two runs
    • The output is helpful to fix the host configuration if needed
  • Running it in a containerized environment is debatable as, after said env has been properly configured once, subsequent builds are supposed to be identical
    • And in the case of a CI misconfiguration, I would also prefer the tests to start running and fail immediately, than waiting for the timeout to happen

Thank you for reading! 🌲

johansatge avatar Jun 10 '22 08:06 johansatge

Any news?

debMan avatar Aug 09 '22 14:08 debMan

I am experiencing this now too at our docker CI builds, I agree with @johansatge - it would be nice to be able to disable this verification for certain jobs.

uklimaschewski avatar Nov 22 '22 10:11 uklimaschewski

Any chance to introduce an option which can be used to turn off the verification completely? It makes sense for CI environment.

grushetsky avatar Feb 15 '23 15:02 grushetsky