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 diagnostics are ommited when running with --test
#45911
Comments
|
CC @manekinekko |
|
This is indeed caused by node/lib/internal/test_runner/runner.js Line 185 in f14fa1b
This was done by design to prevent some undesired top-level comments from being parsed (can't remember the exact reason). This looks like an issue and we need to handle those top-level comments differently. |
|
@manekinekko that is not the only cause. see the steps I performed in the issue - commenting that condition out did not help |
|
Gotcha! Let me investigate this. |
|
After a quick investigation, it seems that the output of The current TAP parser was implemented following v14 specs which state: However, it seems that TAP 13 specs treat any comment as a diagnostic value: @MoLow @cjihrig what do you suggest:
I'd recommend going with 2/ since TAP v14 is considered the current specs. |
MoLow commentedDec 19, 2022
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
How often does it reproduce? Is there a required condition?
always
What is the expected behavior?
when running without
--flagthe diagnostics are printed:What do you see instead?
this is the result of adding a log where all the TAP parsed tokens are handled
node/lib/internal/test_runner/runner.js
Line 133 in f14fa1b
the diagnostics are missing
Additional information
No response
The text was updated successfully, but these errors were encountered: