Open ryanthemanuel opened 2 years ago
This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided.
This issue has been closed due to inactivity.
What would you like?
I would like to ensure that tests immediately stop execution when the
before:spec
plugin hook throws an exception.Why is this needed?
This will ensure that the stack trace in this scenario is as clean as possible. Currently, we will occasionally see this tacked on the end of the stack trace:
Additional information
In 9.0 of Cypress we would execute this hook as a part of the runSpec method so it was easy to fail when things went wrong. Now we execute this hook as a response to a websocket events which makes halting the whole test execution at that moment pretty difficult with how things are currently structured