Skip to content
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

[v16.x backport] node:test #43904

Closed
wants to merge 4 commits into from

Commits on Jul 31, 2022

  1. test: add initial test module

    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 <[email protected]>
    Reviewed-By: Antoine du Hamel <[email protected]>
    cjihrig authored and targos committed Jul 31, 2022
    Configuration menu
    Copy the full SHA
    e9fc0e6 View commit details
    Browse the repository at this point in the history
  2. module,repl: support 'node:'-only core modules

    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 <[email protected]>
    Reviewed-By: Antoine du Hamel <[email protected]>
    cjihrig authored and targos committed Jul 31, 2022
    Configuration menu
    Copy the full SHA
    dc71d0c View commit details
    Browse the repository at this point in the history
  3. test_runner: support 'only' tests

    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 <[email protected]>
    Reviewed-By: Antoine du Hamel <[email protected]>
    cjihrig authored and targos committed Jul 31, 2022
    Configuration menu
    Copy the full SHA
    a77bdaf View commit details
    Browse the repository at this point in the history
  4. test_runner: add initial CLI runner

    This commit introduces an initial version of a CLI-based
    test runner.
    
    PR-URL: nodejs#42658
    Reviewed-By: Antoine du Hamel <[email protected]>
    cjihrig authored and targos committed Jul 31, 2022
    Configuration menu
    Copy the full SHA
    c2100cc View commit details
    Browse the repository at this point in the history