How to obtain output like cypress open
(headed), but in a CI cypress run
(headless) environment?
#25099
Unanswered
richardkmichael
asked this question in
Questions and Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Running locally with
cypress open
, helpful network request logging is printed to the terminal:This has helped me debugging an unexpected
401
response from a server, and it is causing Electron to crash.I believe this same problem is occurring in a headless CI environment because I see the same Electron crash and stacktrace, but I can't see which requests are being made prior.
How can I obtain the same network request logging in a headless environment? It would be fine to send it to a file, to be kept as an CI job artifact for inspection.
I realize I can set
DEBUG=cypress:*
orcypress:network:*
, etc. but the output is harder to read. (Also on some hosted CI setups, it is easy to exceed job output limits.)Thank you!
Beta Was this translation helpful? Give feedback.
All reactions