Uh oh!
There was an error while loading. Please reload this page.
[v16.x backport] node:test - #43904
Conversation
nodejs-github-bot
commented
Jul 19, 2022
Review requested:
|
ljharb
commented
Jul 19, 2022
This seems very risky; node typically does not backport new core modules. |
F3n67u
commented
Jul 20, 2022
@ljharb Could you elaborate on why it is risky? Thanks. |
ljharb
commented
Jul 20, 2022
@F3n67u new core modules are always risky. In the typical case (every single one but In this case, the |
targos
commented
Jul 26, 2022
@nodejs/lts what do you think? |
GeoffreyBooth
commented
Jul 26, 2022
This doesn’t strike me as all that risky; what could break in userland if there’s suddenly an additional prefixed core module? What relies on the list of builtins, and more precisely what would break if that list grew by one? This feels like a semver-minor change; a new feature has been added. It’s not that different from a new API being added on any of the core modules. Sure, someone might have been depending somehow on the list of APIs on If we don’t backport |
aduh95
commented
Jul 26, 2022
To clarify here, it would break if a userland module was using the same name as the core built-in one. But that doesn't apply here because
FWIW they can already, via |
nodejs-github-bot
commented
Jul 27, 2022
targos
commented
Jul 27, 2022
ljharb
commented
Jul 27, 2022
It could be backported without being exposed such that it has no risk and also unblocks additional backport PRs. |
if this lands, will we need to remove https://github.com/nodejs/node/labels/dont-land-on-v16.x from all/some of these? |
targos
commented
Jul 27, 2022
@MoLow yes, but with |
nodejs-github-bot
commented
Jul 27, 2022
nodejs-github-bot
commented
Jul 30, 2022
nodejs-github-bot
commented
Jul 30, 2022
nodejs-github-bot
commented
Jul 31, 2022
nodejs-github-bot
commented
Jul 31, 2022
nodejs-github-bot
commented
Jul 31, 2022
nodejs-github-bot
commented
Jul 31, 2022
targos
commented
Jul 31, 2022
I think CI was resumed enough times to confirm that the failing test is broken, not flaky. |
This commit adds a new 'test' module that exposes an API for creating JavaScript tests. As the tests execute, TAP output is written to standard output. This commit only supports executing individual test files, and does not implement command line functionality for a full test runner. PR-URL: nodejs#42325 Refs: nodejs#40954 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
This commit makes it possible to add new core modules that can only be require()'ed and imported when the 'node:' scheme is used. The 'test' module is the first such module. These 'node:'-only modules are not included in the list returned by module.builtinModules. PR-URL: nodejs#42325 Refs: nodejs#40954 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
This commit introduces a CLI flag and test runner functionality to support running a subset of tests that are indicated by an 'only' option passed to the test. PR-URL: nodejs#42514 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
This commit introduces an initial version of a CLI-based test runner. PR-URL: nodejs#42658 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
targos
commented
Jul 31, 2022
I removed #41818 from the staging branch and rebased this PR. |
nodejs-github-bot
commented
Jul 31, 2022
This commit adds a new 'test' module that exposes an API for creating JavaScript tests. As the tests execute, TAP output is written to standard output. This commit only supports executing individual test files, and does not implement command line functionality for a full test runner. PR-URL: #42325 Backport-PR-URL: #43904 Refs: #40954 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
This commit makes it possible to add new core modules that can only be require()'ed and imported when the 'node:' scheme is used. The 'test' module is the first such module. These 'node:'-only modules are not included in the list returned by module.builtinModules. PR-URL: #42325 Backport-PR-URL: #43904 Refs: #40954 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
This commit introduces a CLI flag and test runner functionality to support running a subset of tests that are indicated by an 'only' option passed to the test. PR-URL: #42514 Backport-PR-URL: #43904 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
targos
commented
Jul 31, 2022
Landed in 92051cb...cd6f24b |
This commit adds a new 'test' module that exposes an API for creating JavaScript tests. As the tests execute, TAP output is written to standard output. This commit only supports executing individual test files, and does not implement command line functionality for a full test runner. PR-URL: nodejs/node#42325 Backport-PR-URL: nodejs/node#43904 Refs: nodejs/node#40954 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
This commit makes it possible to add new core modules that can only be require()'ed and imported when the 'node:' scheme is used. The 'test' module is the first such module. These 'node:'-only modules are not included in the list returned by module.builtinModules. PR-URL: nodejs/node#42325 Backport-PR-URL: nodejs/node#43904 Refs: nodejs/node#40954 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
This commit introduces a CLI flag and test runner functionality to support running a subset of tests that are indicated by an 'only' option passed to the test. PR-URL: nodejs/node#42514 Backport-PR-URL: nodejs/node#43904 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
This commit introduces an initial version of a CLI-based test runner. PR-URL: nodejs/node#42658 Backport-PR-URL: nodejs/node#43904 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
No description provided.