-
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 runner: top-level diagnostics are ommited when running with --test
#45910
Comments
cc @manekinekko |
--test
--test
--test
--test
I initially thought this and #45911 were the same issue but some debugging showed that #45911 originates inside the TAP parser whereas this issue comes from here node/lib/internal/test_runner/runner.js Lines 184 to 187 in f14fa1b
|
For anyone looking to work on this issue, I've commented on #45911. Both issues are related. |
@MoLow claim |
Hi @manekinekko I would like to work on this Issue! |
@ashutosh887 I noticed that you commented on at least 3 issues that you would like to work on them. Feel free to work on any available issues, but please do not try to "claim" them or otherwise lick the cookie. That creates problems in the event that you aren't able to complete everything you've signed up for. |
Please feel free to work on it. I closed the one I created as it's not the way we needed. |
@cjihrig No it's not like that |
@ashutosh887 are you still interested to take it? what is your main difficulty? we could try to help you @MoLow if @ashutosh887 does not reply, I'm the next in the queue to work on this ;) |
@italojs AFAIAC you can work on this |
nice, could you assign it to me, please? |
@italojs no need to assign, you can simply go ahead and create a PR |
PR-URL: #46441 Fixes: #45910 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
PR-URL: nodejs/node#46441 Fixes: nodejs/node#45910 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> (cherry picked from commit 61c65b066b098cf47f89206212864ec1cddb8782)
PR-URL: nodejs/node#46441 Fixes: nodejs/node#45910 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> (cherry picked from commit 61c65b066b098cf47f89206212864ec1cddb8782)
PR-URL: nodejs/node#46441 Fixes: nodejs/node#45910 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> (cherry picked from commit 61c65b066b098cf47f89206212864ec1cddb8782)
PR-URL: nodejs#46441 Fixes: nodejs#45910 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
PR-URL: #46441 Fixes: #45910 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
PR-URL: nodejs#46441 Fixes: nodejs#45910 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
PR-URL: nodejs#46441 Fixes: nodejs#45910 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
PR-URL: nodejs#46441 Fixes: nodejs#45910 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
PR-URL: #46441 Backport-PR-URL: #46839 Fixes: #45910 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
PR-URL: #46441 Backport-PR-URL: #46839 Fixes: #45910 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
Version
v20.0.0-pre
Platform
Darwin Moshes-MBP.localdomain 21.1.0 Darwin Kernel Version 21.1.0: Wed Oct 13 17:33:01 PDT 2021; root:xnu-8019.41.5~1/RELEASE_ARM64_T6000 arm64
Subsystem
test_runner
What steps will reproduce the bug?
run
node --test test.js
where
tets.js
isHow often does it reproduce? Is there a required condition?
always
What is the expected behavior?
the same as when running without
--test
:What do you see instead?
missing
# Warning: Test "<anonymous>" generated asynchronous activity after the test ended. This activity created the error "ReferenceError: done is not defined" and would have caused the test to fail, but instead triggered an uncaughtException event.
Additional information
diagnostics were ignored intentionally so the
duration_ms
,tests
,pass
etc don't appear twice:node/lib/internal/test_runner/runner.js
Lines 184 to 187 in f14fa1b
we should find some way to filter top-level diagnostics only in cases they are redundant
The text was updated successfully, but these errors were encountered: