Inconsistent failures using Cypress Run #15744
Unanswered
sjaugmented
asked this question in
CI setup
Replies: 2 comments 1 reply
-
I would suggest following our recommendations on troubleshooting why tests are fail in CI but pass locally: https://on.cypress.io/using-cypress-faq#Why-do-my-Cypress-tests-pass-locally-but-not-in-CI |
Beta Was this translation helpful? Give feedback.
1 reply
-
For now, I assume run falling inconsistent is related to undiscovered memory leaks like ##4164 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a series of tests, all working and passing with
cypress open
and the UI. The problem is when I run the test suite usingcypress run
and running headless from the command line. I get failures on tests that consistently pass in the UI.Extra aggravation is when I single out a failed test with
npx cypress run --spec "failedTest.spec"
. Running solo tests, they all pass. It's only when I run the entire batch fromcypress run
that I get failures.There doesn't seem to be any consistency to the failures either. With the exception of one test, most of the failures seem to be random, sometimes even happening in the
beforeEach
block, which is identical across the tests. Other times it says there are missing testid's, which - again - most of the tests share. I've also tried specifying a browser as well, as I thought Electron might be an issue, but it doesn't seem to make a difference.So two questions, if anyone has any thoughts: why are tests passing in the UI but failing from the command line? And why are tests passing when run individually from the command line, but failing when running the whole suite?
Beta Was this translation helpful? Give feedback.
All reactions