-
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
Capture stderr in e2e tests #5355
Conversation
Thanks for the contribution! Below are some guidelines Cypress uses when doing PR reviews.
PR Review ChecklistIf any of the following requirements can't be met, leave a comment in the review selecting 'Request changes', otherwise 'Approve'. User Experience
Functionality
Maintainability
Quality
Internal
|
This PR isn't necessary - all that's necessary is that we go through the CLI itself for e2e tests, which means we automatically get the logic from the CLI that does the filtering. This has been needed for a long time now - and with the advent of the Previously the CLI would always expect the raw built binary, but the The I'm closing but you can reopen if I'm missing something. |
Even if the e2e test went through the CLI, it doesn't snapshot the stderr from the child process, only the stdout, which is the purpose of this PR. So I think this is still necessary. I can try refactoring the e2e tests to go through the CLI so that I don't need to require that function directly. That would be a nice improvement for the robustness of the e2e tests as a whole as well. |
That's true - I'll reopen and we can rearchitect it. |
Been thinking about this, it probably makes more sense to have |
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
fd28ee7
to
99ec5c7
Compare
Unfortunately we have to close this issue due to inactivity. Please comment if there is new information to provide concerning the original issue and we can reopen. |
User facing changelog
N/A - not user facing
Additional details
stderr
with thestdout
that is snapshotted in e2e tests.stderr
lines are prefixed with[e2e stderr]:
to aid with understanding what parts of a snapshot are stderr and what parts are stdout.snap-shot-it
release with feat: allow empty string values to be snapshotted bahmutov/snap-shot-core#311 so empty stderr can be snapshottedThis captures stderr from e2e tests in addition to stdout. Most specs don't produce any stderr, but this will allow us to keep track of unwanted stderr output in the future.
PR Tasks