How to disregard failed Cypress builds #814
Unanswered
khitrenovich
asked this question in
Ideas
Replies: 1 comment 4 replies
-
Hey @khitrenovich! There's no way to do this really (in a nice way), it's a feature the product needs to implement. You can do either of the suggestions you've presented (where you don't finalize the build if the suite fails). That would basically hang the build open for 4 hours until it gets swept into a missing finalize state, which is a clever way to work around a missing part of the product. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi @Robdel12,
We are running Percy on top of Cypress-based e2e tests with
as documented.
In most of the cases, stuff works as expected :)
However, when Cypress builds fail (for whatever reason), the Percy builds with missing screenshots are still treated as complete and become the new baseline. This results in a change notification on the next successful build and also in false positives in PR checks.
What can be done about that?
For now I have two ideas on how to solve that
percy exec --parallel
and finalize the Percy build only if Cypress build passes.percy exec:start
before the tests and stop it withpercy exec:stop
only if Cypress build passes.I'm not quite sure if those ways are substantially different and whether this will helpat all.
Any guidance will be appreciated.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions