-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
test: add and use expectSyncExitWithoutError() and expectSyncExit() utils #49020
Conversation
Review requested:
|
Many of our tests that launch child processes only check the status of them without additional logging so when they fail, usually what you see from a
and without changing the code to do additional logging it's usually impossible to understand exactly what's causing the failure. this is especially troublesome when debugging flaky tests in the CI. So my hope is that we can also gradually use these methods instead of doing |
These can be used to check the state and the output of a child process launched with `spawnSync()`. They log additional information about the child process when the check fails to facilitate debugging test failures.
..and replace the similar code added for logging.
Landed in 6391b3b...a3f12e4 |
These can be used to check the state and the output of a child process launched with `spawnSync()`. They log additional information about the child process when the check fails to facilitate debugging test failures. PR-URL: #49020 Reviewed-By: Luigi Pinca <[email protected]>
..and replace the similar code added for logging. PR-URL: #49020 Reviewed-By: Luigi Pinca <[email protected]>
These can be used to check the state and the output of a child process launched with `spawnSync()`. They log additional information about the child process when the check fails to facilitate debugging test failures. PR-URL: #49020 Reviewed-By: Luigi Pinca <[email protected]>
..and replace the similar code added for logging. PR-URL: #49020 Reviewed-By: Luigi Pinca <[email protected]>
These can be used to check the state and the output of a child process launched with `spawnSync()`. They log additional information about the child process when the check fails to facilitate debugging test failures. PR-URL: #49020 Reviewed-By: Luigi Pinca <[email protected]>
These can be used to check the state and the output of a child process launched with `spawnSync()`. They log additional information about the child process when the check fails to facilitate debugging test failures. PR-URL: nodejs/node#49020 Reviewed-By: Luigi Pinca <[email protected]>
These can be used to check the state and the output of a child process launched with `spawnSync()`. They log additional information about the child process when the check fails to facilitate debugging test failures. PR-URL: nodejs/node#49020 Reviewed-By: Luigi Pinca <[email protected]>
test: add expectSyncExitWithoutError() and expectSyncExit() utils
These can be used to check the state and the output of a child
process launched with
spawnSync()
. They log additional informationabout the child process when the check fails to facilitate debugging
test failures.
test: use expectSyncExit{WithErrors} in snapshot tests
..and replace the similar code added for logging.