You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running my cypress test through cypress run --e2e command I am facing write EPIPE error. This issue crashes my application and test stops abruptly. I have 30specs and issue occurs during cypress run command while cypress open works fine.
@YuvarajSaravanan Can you narrow down your use case of your run and provide a reproducible example? Since this is not a commonly reported error, I expect something is specific to your use case that would cause this.
Hi @jennifer-shehane, The error occurs randomly during my test and there is no exact way to reproduce the error.
I was using start-server-and-test to start my server and then run the cypress test, during the run when the EPIPE error appears the entire application process stops and exits.
To test further, I tried without using start-server-and-test. I have started the application (next dev command) in a separate terminal and cypress command(npx cypress run --e2e) in a separate terminal. Found that the EPIPE error is happening at the terminal running the cypress and this time my application continue to run without exit but only the cypress command exited after the EPIPE error.
Current behavior
When running my cypress test through
cypress run --e2e
command I am facing write EPIPE error. This issue crashes my application and test stops abruptly. I have 30specs and issue occurs duringcypress run
command while cypress open works fine.Node version: 21.7,3
Cypress version: 13.13.0
OS: macOS Sonoma 14.6.1
This issue happens only in my mac machine, when tested on a windows machine the test runs smooth.
ERROR:
Desired behavior
As per this, the EPIPE errors has been handled in Windows machine. Expect the same for mac machine also.
EPIPE error on Windows runs
catch EPIPE errors
Test code to reproduce
Running test through "cypress run --e2e". also I am using start-server-and-test to start my application server before starting cypress test.
Cypress Version
13.13.0
Node version
21.7.3
Operating System
macOS Sonoma 14.6.1
Debug Logs
Other
This issue occurs at random spec file. I have 30 specs and sometimes at 18th spec and sometime 19th or 20th spec file facing this EPIPE issue.
The text was updated successfully, but these errors were encountered: