Uh oh!
There was an error while loading. Please reload this page.
test: refactoring and cleanup on child-process tests - #32078
Conversation
gengjiawen
commented
Mar 4, 2020
test |
jasnell
commented
Mar 4, 2020
Interesting... it's passing locally for me. Will investigate. |
This comment has been minimized.
This comment has been minimized.
jasnell
commented
Mar 4, 2020
Looks like one of the events in question is not emitted consistently across platforms. Trying again. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
nodejs-github-bot
commented
Mar 4, 2020
jasnell
commented
Mar 5, 2020
Finally, a good CI run. Turns out the actual emission of events in |
Uh oh!
There was an error while loading. Please reload this page.
sam-github
commented
Mar 20, 2020
I assumed this would have landed already, and was just searching for the debug utility, with no luck. We really need to be able to leave debug messages in tests, ones that normally have no output, but where the output can be turned on. Every time I have to debug a test I start by injecting console.log statements into them so I know where they are failing... then delete them before PRing. Its not a good way to do things. If the PR is stalled on the stability of tests, maybe the base feature can be PRed on its own? |
cjihrig
commented
Mar 20, 2020
@sam-github I think it's stalled on this alternate proposal: #32078 (comment) |
This comment has been minimized.
This comment has been minimized.
jasnell
commented
Mar 23, 2020
Went head and removed the |
nodejs-github-bot
commented
Mar 23, 2020
PR-URL: #32078 Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
jasnell
commented
Mar 24, 2020
Landed in d0c0e20 |
PR-URL: #32078 Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
PR-URL: nodejs#32078 Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
PR-URL: #32078 Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
This makes sure all usages of `util.debuglog()` must contain the string 'test' as argument. PR-URL: #32161 Refs: #32078 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
These rules only apply for the test folder and will already be checked for. PR-URL: #32161 Refs: #32078 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
This makes sure all usages of `util.debuglog()` must contain the string 'test' as argument. PR-URL: #32161 Refs: #32078 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
These rules only apply for the test folder and will already be checked for. PR-URL: #32161 Refs: #32078 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
This makes sure all usages of `util.debuglog()` must contain the string 'test' as argument. PR-URL: #32161 Refs: #32078 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
These rules only apply for the test folder and will already be checked for. PR-URL: #32161 Refs: #32078 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
Commit 1 in this scratches an itch I've had for a while: it adds acommon.debug()totest/common/index.jsthat usesutil.debuglog()as a way of avoiding use ofconsole.log()statements in tests that are not part of the test itself.To enable the debug output while running tests, set the environment variableNODE_DEBUG=test.Commit 2Makes a number of improvements to child process tests including use of thedebuglog(), more must calls, and use of../common/countdownwhere appropriate.Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes