Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.2k
test_runner: expose location of tests#48975
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Review requested:
|
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Amazing work! Could you add this information to the tap reporter as well? This happens relatively often in CI too.
Uh oh!
There was an error while loading.Please reload this page.
This probably needs benchmark as taking a trace can be expensive, doesn't it? |
I tried really hard to avoid implementing this because I was worried about that. I tried to make it as fast as possible while being accurate. It only collects two stack frames and does not iterate over them. I think we actually need this from a correctness standpoint. The reporter emits events with filenames attached to it, which might not be correct. The DX is a secondary improvement for things like#48457 (comment). |
Usually perf isn’t that important in failure cases, which any failed tests would be. What’s the actual impact here? |
The problem is that if you wait until you know that the test failed, you can't get at the original call site, so you have to do it for all tests. If you do know of a way to accurately get the original There's also the issue of reporting the wrong filename if you run a test from a non-main file via, for example, |
Presumably the expensive part is stack generation, and that’s what needs to be done eagerly :-/ |
We would still need a benchmark or alternatively to make this opt in only if you listen to the event + a doc warning? |
I'm not sure how that would work. The filename is already part of the public API. Even if we limited these changes to the |
How would this work with compilers that change the code location (e.g. TypeScript) |
It points to the location at runtime (same as the file, which would be the |
I've updated this PR based on feedback, including updating the TAP reporter. Here are the benchmark numbers:
I'm on the fence because, as expected, there is a performance hit. On the other hand, as previously mentioned, this improves correctness and provides important debugging information. 🤷 |
The alternative solution to this issue is to restore printing the file name when more than one file is being run (wrapping it in a suite automatically). It's a less accurate, but at least we can point out where things are broken. |
The more I think about this, the more I think we should land this change. I'm not entirely confident in the benchmarks. For example, why does |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
lgtm
rluvaton commentedAug 8, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
If you think the benchmark would need an improvement I would love to see that... I added those as we did not have anything so we had no data to make a decision |
Having the benchmarks is a great improvement. Thank you for that. Unfortunately, I don't have any suggestions for improving them (other than I'm not sure |
Yagiz suggested to improve the benchmark reliability we should extract to test creation an test running but I don't think that's possible but it might give you some idea 😄 |
Notable changes:deps: * V8: cherry-pick 93275031284c (Joyee Cheung)#48660doc: * add new TSC members (Michael Dawson)#48841 * add rluvaton to collaborators (Raz Luvaton)#49215esm: * unflag import.meta.resolve (Guy Bedford)#49028 * add `initialize` hook, integrate with `register` (Izaak Schroeder)#48842 * unflag `Module.register` and allow nested loader `import()` (Izaak Schroeder)#48559inspector: * (SEMVER-MINOR) open add `SymbolDispose` (Chemi Atlow)#48765module: * implement `register` utility (João Lenon)#46826 * make CJS load from ESM loader (Antoine du Hamel)#47999src: * add built-in `.env` file support (Yagiz Nizipli)#48890 * initialize cppgc (Daryl Haresign and Joyee Cheung)#48660 and#45704test_runner: * (SEMVER-MINOR) expose location of tests (Colin Ihrig)#48975PR-URL:#49185
This commit adds each test's line and column number to the reporteroutput. This will aid in debugging test suite failures when errorstacks are not helpful, test suites are large, or tests have thesame name. This data is also exposed on the spec reporter.This commit also replaces the filename that was previously beingreported, with the filename where the test actually exists. Theseare normally correct, but could be wrong if tests were run froma file other than the user's entrypoint.PR-URL:#48975Backport-PR-URL:#49225Fixes:#48457Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>Reviewed-By: Matteo Collina <matteo.collina@gmail.com>Reviewed-By: Chemi Atlow <chemi@atlow.co.il>Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Notable changes:crypto: * update root certificates to NSS 3.93 (Node.js GitHub Bot)#49341doc: * move and rename loaders section (Geoffrey Booth)#49261lib: * (SEMVER-MINOR) add api to detect whether source-maps are enabled (翠 / green)#46391src,permission: * add multiple allow-fs-* flags (Carlos Espa)#49047test_runner: * (SEMVER-MINOR) expose location of tests (Colin Ihrig)#48975PR-URL: TODO
Notable changes:crypto: * update root certificates to NSS 3.93 (Node.js GitHub Bot)#49341doc: * move and rename loaders section (Geoffrey Booth)#49261lib: * (SEMVER-MINOR) add api to detect whether source-maps are enabled (翠 / green)#46391src,permission: * add multiple allow-fs-* flags (Carlos Espa)#49047test_runner: * (SEMVER-MINOR) expose location of tests (Colin Ihrig)#48975PR-URL:#49592
Notable changes:crypto: * update root certificates to NSS 3.93 (Node.js GitHub Bot)#49341doc: * move and rename loaders section (Geoffrey Booth)#49261lib: * (SEMVER-MINOR) add api to detect whether source-maps are enabled (翠 / green)#46391src,permission: * add multiple allow-fs-* flags (Carlos Espa)#49047test_runner: * (SEMVER-MINOR) expose location of tests (Colin Ihrig)#48975PR-URL:#49592
Notable changes:crypto: * update root certificates to NSS 3.93 (Node.js GitHub Bot)#49341doc: * move and rename loaders section (Geoffrey Booth)#49261lib: * (SEMVER-MINOR) add api to detect whether source-maps are enabled (翠 / green)#46391src: * support multiple `--env-file` declarations (Yagiz Nizipli)#49542src,permission: * add multiple allow-fs-* flags (Carlos Espa)#49047test_runner: * (SEMVER-MINOR) expose location of tests (Colin Ihrig)#48975PR-URL:#49592
Notable changes:crypto: * update root certificates to NSS 3.93 (Node.js GitHub Bot)#49341doc: * move and rename loaders section (Geoffrey Booth)#49261lib: * (SEMVER-MINOR) add api to detect whether source-maps are enabled (翠 / green)#46391src: * support multiple `--env-file` declarations (Yagiz Nizipli)#49542src,permission: * add multiple allow-fs-* flags (Carlos Espa)#49047test_runner: * (SEMVER-MINOR) expose location of tests (Colin Ihrig)#48975PR-URL:#49592
Notable changes:crypto: * update root certificates to NSS 3.93 (Node.js GitHub Bot)#49341doc: * move and rename loaders section (Geoffrey Booth)#49261lib: * (SEMVER-MINOR) add api to detect whether source-maps are enabled (翠 / green)#46391src: * support multiple `--env-file` declarations (Yagiz Nizipli)#49542src,permission: * add multiple allow-fs-* flags (Carlos Espa)#49047test_runner: * (SEMVER-MINOR) expose location of tests (Colin Ihrig)#48975PR-URL:#49592
Notable changes:crypto: * update root certificates to NSS 3.93 (Node.js GitHub Bot)#49341doc: * move and rename loaders section (Geoffrey Booth)#49261 * add release key for Ulises Gascon (Ulises Gascón)#49196lib: * (SEMVER-MINOR) add api to detect whether source-maps are enabled (翠 / green)#46391src: * support multiple `--env-file` declarations (Yagiz Nizipli)#49542src,permission: * add multiple allow-fs-* flags (Carlos Espa)#49047test_runner: * (SEMVER-MINOR) expose location of tests (Colin Ihrig)#48975PR-URL:#49592
Notable changes:crypto: * update root certificates to NSS 3.93 (Node.js GitHub Bot)#49341doc: * move and rename loaders section (Geoffrey Booth)#49261 * add release key for Ulises Gascon (Ulises Gascón)#49196lib: * (SEMVER-MINOR) add api to detect whether source-maps are enabled (翠 / green)#46391src: * support multiple `--env-file` declarations (Yagiz Nizipli)#49542src,permission: * add multiple allow-fs-* flags (Carlos Espa)#49047test_runner: * (SEMVER-MINOR) expose location of tests (Colin Ihrig)#48975PR-URL:#49592
Notable changes:crypto: * update root certificates to NSS 3.93 (Node.js GitHub Bot)#49341doc: * move and rename loaders section (Geoffrey Booth)#49261 * add release key for Ulises Gascon (Ulises Gascón)#49196lib: * (SEMVER-MINOR) add api to detect whether source-maps are enabled (翠 / green)#46391src: * support multiple `--env-file` declarations (Yagiz Nizipli)#49542src,permission: * add multiple allow-fs-* flags (Carlos Espa)#49047test_runner: * (SEMVER-MINOR) expose location of tests (Colin Ihrig)#48975PR-URL:#49592
Notable changes:crypto: * update root certificates to NSS 3.93 (Node.js GitHub Bot)#49341doc: * move and rename loaders section (Geoffrey Booth)#49261 * add release key for Ulises Gascon (Ulises Gascón)#49196lib: * (SEMVER-MINOR) add api to detect whether source-maps are enabled (翠 / green)#46391src: * support multiple `--env-file` declarations (Yagiz Nizipli)#49542src,permission: * add multiple allow-fs-* flags (Carlos Espa)#49047test_runner: * (SEMVER-MINOR) expose location of tests (Colin Ihrig)#48975PR-URL:#49592
Notable changes:crypto: * update root certificates to NSS 3.93 (Node.js GitHub Bot)#49341doc: * move and rename loaders section (Geoffrey Booth)#49261 * add release key for Ulises Gascon (Ulises Gascón)#49196lib: * (SEMVER-MINOR) add api to detect whether source-maps are enabled (翠 / green)#46391src: * support multiple `--env-file` declarations (Yagiz Nizipli)#49542src,permission: * add multiple allow-fs-* flags (Carlos Espa)#49047test_runner: * (SEMVER-MINOR) expose location of tests (Colin Ihrig)#48975PR-URL:#49592
Notable changes:crypto: * update root certificates to NSS 3.93 (Node.js GitHub Bot)#49341deps: * upgrade npm to 10.0.0 (npm team)#49423 * upgrade npm to 10.1.0 (npm team)#49570doc: * move and rename loaders section (Geoffrey Booth)#49261 * add release key for Ulises Gascon (Ulises Gascón)#49196lib: * (SEMVER-MINOR) add api to detect whether source-maps are enabled (翠 / green)#46391src: * support multiple `--env-file` declarations (Yagiz Nizipli)#49542src,permission: * add multiple allow-fs-* flags (Carlos Espa)#49047test_runner: * (SEMVER-MINOR) expose location of tests (Colin Ihrig)#48975PR-URL:#49592
Notable changes:crypto: * update root certificates to NSS 3.93 (Node.js GitHub Bot)#49341deps: * upgrade npm to 10.1.0 (npm team)#49570 * upgrade npm to 10.0.0 (npm team)#49423doc: * move and rename loaders section (Geoffrey Booth)#49261 * add release key for Ulises Gascon (Ulises Gascón)#49196lib: * (SEMVER-MINOR) add api to detect whether source-maps are enabled (翠 / green)#46391src: * support multiple `--env-file` declarations (Yagiz Nizipli)#49542src,permission: * add multiple allow-fs-* flags (Carlos Espa)#49047test_runner: * (SEMVER-MINOR) expose location of tests (Colin Ihrig)#48975PR-URL:#49592
Notable changes:crypto: * update root certificates to NSS 3.93 (Node.js GitHub Bot)nodejs#49341deps: * upgrade npm to 10.1.0 (npm team)nodejs#49570 * upgrade npm to 10.0.0 (npm team)nodejs#49423doc: * move and rename loaders section (Geoffrey Booth)nodejs#49261 * add release key for Ulises Gascon (Ulises Gascón)nodejs#49196lib: * (SEMVER-MINOR) add api to detect whether source-maps are enabled (翠 / green)nodejs#46391src: * support multiple `--env-file` declarations (Yagiz Nizipli)nodejs#49542src,permission: * add multiple allow-fs-* flags (Carlos Espa)nodejs#49047test_runner: * (SEMVER-MINOR) expose location of tests (Colin Ihrig)nodejs#48975PR-URL:nodejs#49592
Notable changes:deps: * V8: cherry-pick 93275031284c (Joyee Cheung)nodejs#48660doc: * add new TSC members (Michael Dawson)nodejs#48841 * add rluvaton to collaborators (Raz Luvaton)nodejs#49215esm: * unflag import.meta.resolve (Guy Bedford)nodejs#49028 * add `initialize` hook, integrate with `register` (Izaak Schroeder)nodejs#48842 * unflag `Module.register` and allow nested loader `import()` (Izaak Schroeder)nodejs#48559inspector: * (SEMVER-MINOR) open add `SymbolDispose` (Chemi Atlow)nodejs#48765module: * implement `register` utility (João Lenon)nodejs#46826 * make CJS load from ESM loader (Antoine du Hamel)nodejs#47999src: * add built-in `.env` file support (Yagiz Nizipli)nodejs#48890 * initialize cppgc (Daryl Haresign and Joyee Cheung)nodejs#48660 andnodejs#45704test_runner: * (SEMVER-MINOR) expose location of tests (Colin Ihrig)nodejs#48975PR-URL:nodejs#49185
Notable changes:crypto: * update root certificates to NSS 3.93 (Node.js GitHub Bot)nodejs#49341deps: * upgrade npm to 10.1.0 (npm team)nodejs#49570 * upgrade npm to 10.0.0 (npm team)nodejs#49423doc: * move and rename loaders section (Geoffrey Booth)nodejs#49261 * add release key for Ulises Gascon (Ulises Gascón)nodejs#49196lib: * (SEMVER-MINOR) add api to detect whether source-maps are enabled (翠 / green)nodejs#46391src: * support multiple `--env-file` declarations (Yagiz Nizipli)nodejs#49542src,permission: * add multiple allow-fs-* flags (Carlos Espa)nodejs#49047test_runner: * (SEMVER-MINOR) expose location of tests (Colin Ihrig)nodejs#48975PR-URL:nodejs#49592
This commit adds each test's line and column number to the reporteroutput. This will aid in debugging test suite failures when errorstacks are not helpful, test suites are large, or tests have thesame name. This data is also exposed on the spec reporter.This commit also replaces the filename that was previously beingreported, with the filename where the test actually exists. Theseare normally correct, but could be wrong if tests were run froma file other than the user's entrypoint.PR-URL:#48975Fixes:#48457Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>Reviewed-By: Matteo Collina <matteo.collina@gmail.com>Reviewed-By: Chemi Atlow <chemi@atlow.co.il>Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Notable changes:deps: * (SEMVER-MINOR) update uvwasi to 0.0.19 (Node.js GitHub Bot)#49908 * (SEMVER-MINOR) upgrade npm to 10.0.0 (npm team)#49423doc: * add new TSC members (Michael Dawson)#48841 * move and rename loaders section (Geoffrey Booth)#49261esm: * use import attributes instead of import assertions (Antoine du Hamel)#50140 * --experimental-default-type flag to flip module defaults (Geoffrey Booth)#49869 * unflag import.meta.resolve (Guy Bedford)#49028 * move hook execution to separate thread (Jacob Smith)#44710 * leverage loaders when resolving subsequent loaders (Maël Nison)#43772lib: * (SEMVER-MINOR) add api to detect whether source-maps are enabled (翠 / green)#46391 * (SEMVER-MINOR) add tracing channel to diagnostics_channel (Stephen Belanger)#44943src: * (SEMVER-MINOR) add cjs_module_lexer_version base64_version (Jithil P Ponnan)#45629stream: * use bitmap in readable state (Benjamin Gruenbaum)#49745test_runner: * (SEMVER-MINOR) accept `testOnly` in `run` (Moshe Atlow)#49753 * (SEMVER-MINOR) add junit reporter (Moshe Atlow)#49614 * (SEMVER-MINOR) expose location of tests (Colin Ihrig)#48975 * (SEMVER-MINOR) add shards support (Raz Luvaton)#48639 * (SEMVER-MINOR) add initial draft for fakeTimers (Erick Wendel)#47775test_runner, cli: * (SEMVER-MINOR) add --test-concurrency flag (Colin Ihrig)#49996tls: * (SEMVER-MINOR) add ALPNCallback server option for dynamic ALPN negotiation (Tim Perry)#45190vm: * (SEMVER-MINOR) use import attributes instead of import assertions (Antoine du Hamel)#50141wasi: * (SEMVER-MINOR) updates required for latest uvwasi version (Michael Dawson)#49908PR-URL: TODO
Notable changes:deps: * (SEMVER-MINOR) update uvwasi to 0.0.19 (Node.js GitHub Bot)#49908 * (SEMVER-MINOR) upgrade npm to 10.2.3 (npm team)#50531doc: * move and rename loaders section (Geoffrey Booth)#49261esm: * use import attributes instead of import assertions (Antoine du Hamel)#50140 * --experimental-default-type flag to flip module defaults (Geoffrey Booth)#49869 * unflag import.meta.resolve (Guy Bedford)#49028 * move hook execution to separate thread (Jacob Smith)#44710 * leverage loaders when resolving subsequent loaders (Maël Nison)#43772lib: * (SEMVER-MINOR) add api to detect whether source-maps are enabled (翠 / green)#46391 * (SEMVER-MINOR) add tracing channel to diagnostics_channel (Stephen Belanger)#44943src: * (SEMVER-MINOR) add cjs_module_lexer_version base64_version (Jithil P Ponnan)#45629stream: * use bitmap in readable state (Benjamin Gruenbaum)#49745test_runner: * (SEMVER-MINOR) accept `testOnly` in `run` (Moshe Atlow)#49753 * (SEMVER-MINOR) add junit reporter (Moshe Atlow)#49614 * (SEMVER-MINOR) expose location of tests (Colin Ihrig)#48975 * (SEMVER-MINOR) add shards support (Raz Luvaton)#48639 * (SEMVER-MINOR) add initial draft for fakeTimers (Erick Wendel)#47775test_runner, cli: * (SEMVER-MINOR) add --test-concurrency flag (Colin Ihrig)#49996tls: * (SEMVER-MINOR) add ALPNCallback server option for dynamic ALPN negotiation (Tim Perry)#45190vm: * (SEMVER-MINOR) use import attributes instead of import assertions (Antoine du Hamel)#50141PR-URL:#50953
Notable changes:deps: * (SEMVER-MINOR) update uvwasi to 0.0.19 (Node.js GitHub Bot)#49908 * (SEMVER-MINOR) upgrade npm to 10.2.3 (npm team)#50531doc: * move and rename loaders section (Geoffrey Booth)#49261esm: * use import attributes instead of import assertions (Antoine du Hamel)#50140 * --experimental-default-type flag to flip module defaults (Geoffrey Booth)#49869 * unflag import.meta.resolve (Guy Bedford)#49028 * move hook execution to separate thread (Jacob Smith)#44710 * leverage loaders when resolving subsequent loaders (Maël Nison)#43772lib: * (SEMVER-MINOR) add api to detect whether source-maps are enabled (翠 / green)#46391 * (SEMVER-MINOR) add tracing channel to diagnostics_channel (Stephen Belanger)#44943src: * (SEMVER-MINOR) add cjs_module_lexer_version base64_version (Jithil P Ponnan)#45629stream: * use bitmap in readable state (Benjamin Gruenbaum)#49745test_runner: * (SEMVER-MINOR) accept `testOnly` in `run` (Moshe Atlow)#49753 * (SEMVER-MINOR) add junit reporter (Moshe Atlow)#49614 * (SEMVER-MINOR) expose location of tests (Colin Ihrig)#48975 * (SEMVER-MINOR) add shards support (Raz Luvaton)#48639 * (SEMVER-MINOR) add initial draft for fakeTimers (Erick Wendel)#47775test_runner, cli: * (SEMVER-MINOR) add --test-concurrency flag (Colin Ihrig)#49996tls: * (SEMVER-MINOR) add ALPNCallback server option for dynamic ALPN negotiation (Tim Perry)#45190vm: * (SEMVER-MINOR) use import attributes instead of import assertions (Antoine du Hamel)#50141PR-URL:#50953
This commit adds each test's line and column number to the reporteroutput. This will aid in debugging test suite failures when errorstacks are not helpful, test suites are large, or tests have thesame name. This data is also exposed on the spec reporter.This commit also replaces the filename that was previously beingreported, with the filename where the test actually exists. Theseare normally correct, but could be wrong if tests were run froma file other than the user's entrypoint.PR-URL:nodejs/node#48975Fixes:nodejs/node#48457Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>Reviewed-By: Matteo Collina <matteo.collina@gmail.com>Reviewed-By: Chemi Atlow <chemi@atlow.co.il>Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Notable changes:deps: * (SEMVER-MINOR) update uvwasi to 0.0.19 (Node.js GitHub Bot)nodejs/node#49908 * (SEMVER-MINOR) upgrade npm to 10.2.3 (npm team)nodejs/node#50531doc: * move and rename loaders section (Geoffrey Booth)nodejs/node#49261esm: * use import attributes instead of import assertions (Antoine du Hamel)nodejs/node#50140 * --experimental-default-type flag to flip module defaults (Geoffrey Booth)nodejs/node#49869 * unflag import.meta.resolve (Guy Bedford)nodejs/node#49028 * move hook execution to separate thread (Jacob Smith)nodejs/node#44710 * leverage loaders when resolving subsequent loaders (Maël Nison)nodejs/node#43772lib: * (SEMVER-MINOR) add api to detect whether source-maps are enabled (翠 / green)nodejs/node#46391 * (SEMVER-MINOR) add tracing channel to diagnostics_channel (Stephen Belanger)nodejs/node#44943src: * (SEMVER-MINOR) add cjs_module_lexer_version base64_version (Jithil P Ponnan)nodejs/node#45629stream: * use bitmap in readable state (Benjamin Gruenbaum)nodejs/node#49745test_runner: * (SEMVER-MINOR) accept `testOnly` in `run` (Moshe Atlow)nodejs/node#49753 * (SEMVER-MINOR) add junit reporter (Moshe Atlow)nodejs/node#49614 * (SEMVER-MINOR) expose location of tests (Colin Ihrig)nodejs/node#48975 * (SEMVER-MINOR) add shards support (Raz Luvaton)nodejs/node#48639 * (SEMVER-MINOR) add initial draft for fakeTimers (Erick Wendel)nodejs/node#47775test_runner, cli: * (SEMVER-MINOR) add --test-concurrency flag (Colin Ihrig)nodejs/node#49996tls: * (SEMVER-MINOR) add ALPNCallback server option for dynamic ALPN negotiation (Tim Perry)nodejs/node#45190vm: * (SEMVER-MINOR) use import attributes instead of import assertions (Antoine du Hamel)nodejs/node#50141PR-URL:nodejs/node#50953
This commit adds each test's line and column number to the reporteroutput. This will aid in debugging test suite failures when errorstacks are not helpful, test suites are large, or tests have thesame name. This data is also exposed on the spec reporter.This commit also replaces the filename that was previously beingreported, with the filename where the test actually exists. Theseare normally correct, but could be wrong if tests were run froma file other than the user's entrypoint.PR-URL:nodejs/node#48975Fixes:nodejs/node#48457Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>Reviewed-By: Matteo Collina <matteo.collina@gmail.com>Reviewed-By: Chemi Atlow <chemi@atlow.co.il>Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Notable changes:deps: * (SEMVER-MINOR) update uvwasi to 0.0.19 (Node.js GitHub Bot)nodejs/node#49908 * (SEMVER-MINOR) upgrade npm to 10.2.3 (npm team)nodejs/node#50531doc: * move and rename loaders section (Geoffrey Booth)nodejs/node#49261esm: * use import attributes instead of import assertions (Antoine du Hamel)nodejs/node#50140 * --experimental-default-type flag to flip module defaults (Geoffrey Booth)nodejs/node#49869 * unflag import.meta.resolve (Guy Bedford)nodejs/node#49028 * move hook execution to separate thread (Jacob Smith)nodejs/node#44710 * leverage loaders when resolving subsequent loaders (Maël Nison)nodejs/node#43772lib: * (SEMVER-MINOR) add api to detect whether source-maps are enabled (翠 / green)nodejs/node#46391 * (SEMVER-MINOR) add tracing channel to diagnostics_channel (Stephen Belanger)nodejs/node#44943src: * (SEMVER-MINOR) add cjs_module_lexer_version base64_version (Jithil P Ponnan)nodejs/node#45629stream: * use bitmap in readable state (Benjamin Gruenbaum)nodejs/node#49745test_runner: * (SEMVER-MINOR) accept `testOnly` in `run` (Moshe Atlow)nodejs/node#49753 * (SEMVER-MINOR) add junit reporter (Moshe Atlow)nodejs/node#49614 * (SEMVER-MINOR) expose location of tests (Colin Ihrig)nodejs/node#48975 * (SEMVER-MINOR) add shards support (Raz Luvaton)nodejs/node#48639 * (SEMVER-MINOR) add initial draft for fakeTimers (Erick Wendel)nodejs/node#47775test_runner, cli: * (SEMVER-MINOR) add --test-concurrency flag (Colin Ihrig)nodejs/node#49996tls: * (SEMVER-MINOR) add ALPNCallback server option for dynamic ALPN negotiation (Tim Perry)nodejs/node#45190vm: * (SEMVER-MINOR) use import attributes instead of import assertions (Antoine du Hamel)nodejs/node#50141PR-URL:nodejs/node#50953
This commit adds each test's line and column number to the reporter output. This will aid in debugging test suite failures when error stacks are not helpful, test suites are large, or tests have the same name. This data is also exposed on the spec reporter.
This commit also replaces the filename that was previously being reported, with the filename where the test actually exists. These are normally correct, but could be wrong if tests were run from a file other than the user's entrypoint.
Fixes:#48457