Can cypress run execute all tests together like cypress open? #9191
Unanswered
olabalboa
asked this question in
Questions and Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have read this post https://glebbahmutov.com/blog/run-all-specs/ and are aware of the problems you might get when running all tests together like you can do with
cypress open
.We have a testbot running every five minute to ensure our app and vital integrations are up and running. In order to access the app we must navigate to the login page and enter credentials and press submit button. I have put this in a
before
hook in/support/index.js
and it works fine. Unfortunately it is not possible to do the login programmatically as the cypress best practices suggests.Our tests are divided into multiple specs and when I execute all tests with
cypress open
it runs thebefore
hook once and all specs are executed in the same browser window rapidly after successful login.cypress run
opens a new browser for each spec which means that a login is made before every spec. Since our login process is pretty slow this means that about 95% of the testbot execution time is spent on login.Can I in some way let
cypress run
execute all tests together? I would rather not put all tests in one big spec file.Beta Was this translation helpful? Give feedback.
All reactions