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
cypress run
does not log stderr
from plugins
#5765
Comments
The culprit is that this code path will cause the Lines 238 to 256 in 99ec5c7
I believe this was a mistake, as line 252 returns false, but there is no "default case" that returns true after that. If you add "return true", once again, output will contain Electron debug information (#4255). But we can just filter that out or not set |
HI @jennifer-shehane , |
@santoshyadav198613 Feel free to pick this issue up, ping me if you have any questions. I think changing that |
Hi @flotwig , |
Hi @flotwig , |
Yep, that's great! |
Hi @flotwig, |
Nice |
Also seems to not log std err in tests |
This now works. I'm not sure which version this was released in. Closing as resolved. @purejgleason console.logs or stderr within a test file is exectued within the browser - so will not log to stdout. Use cy.task to log any info within a test to stdout as shown here: https://on.cypress.io/api/commands/task#Usage |
Current behavior:
Run this existing spec that has a plugin which logs to
process.stderr
:cypress/packages/server/test/support/fixtures/projects/system-node/cypress/plugins/index.js
Lines 1 to 5 in 99ec5c7
It will log in
cypress open
, but notcypress run
.Desired behavior:
The pluginsfile should log either way.
The text was updated successfully, but these errors were encountered: