-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose event for when Cypress is about to exit #6946
Comments
You can have more debug logs log, by running Have you looked at our Module API? It may be a medium where you can craft something you want. |
Thanks I will have a look at the module API. But lifecycle events are always useful and it seems easy to fire an event when it's about to exit (maybe where it's logged)? |
Even if easy to implement, there are many considerations when deciding what to put into the product beside its ease of implementation. We'll leave this issue as a proposal and see if this issue gains more 👍 or comments in support from other users. This would likely fall under the work slated for #2840 |
+1. This is a useful feature. |
This is now supported by using the |
This issue will be closed to further comment as the exact issue here was resolved and tested. If you're experiencing a bug similar to this in Cypress, please open a new issue with a fully reproducible example that we can run. There may be a specific edge case with the issue that we need more detail to fix. |
We have a process that starts up when Cypress does, which we start from the Cypress plugins index.js, using NodeJS's
child_process
. The process is Wiremock, to be exact. We know we can use Cypress' fixtures, but for now this is not an option.We would like an event to be implemented that we can bind to so we can kill the
child_process
when Cypress is about to exit.On Windows the
child_process
is killed automatically, but on Linux it needs to be manually stopped, because it keeps running even after the parent process is killed.The text was updated successfully, but these errors were encountered: