node/test
Richard Lau 91a771d3fe
test: update parallel/test-tls-dhe for OpenSSL 3.5
The output of the `s_client` command invoked by the test has changed
in the OpenSSL 3.5.0 version of `s_client`. Update the test so that
it works with both the old and new output -- the `s_client` binary
being run may not be at the exact same version of OpenSSL as used
by Node.js so the updated test allows either output.

PR-URL: https://github.com/nodejs/node/pull/57477
Refs: https://github.com/openssl/openssl/pull/26734
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Xuguang Mei <meixuguang@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2025-04-04 12:59:02 +00:00
..
abort test: disambiguate AIX and IBM i 2023-10-27 16:45:27 +02:00
addons test: fix test when compiled without engine support 2024-11-02 18:50:25 +01:00
async-hooks test: set test-emit-after-on-destroyed as flaky 2023-11-27 11:57:24 +01:00
benchmark url: drop ICU requirement for parsing hostnames 2023-07-12 11:12:39 -04:00
cctest test: fix compiler warning in NodeCryptoEnv 2023-11-26 20:32:39 +01:00
common test: check against run-time OpenSSL version 2024-09-27 14:05:39 +00:00
doctool doc: rename possibly confusing variable and CSS class 2025-02-10 19:32:57 +01:00
embedding test: add missing <algorithm> include for std::find 2023-08-31 10:58:29 -04:00
es-module esm: mark import attributes and JSON module as stable 2024-11-02 18:50:27 +01:00
fixtures esm: fix hook name in error message 2024-11-02 18:42:15 +01:00
fuzzers
internet test: handle relative https redirect 2024-03-20 15:48:02 +00:00
js-native-api test: fix unreliable assumption in js-native-api/test_cannot_run_js 2024-09-26 13:38:46 +00:00
known_issues test: disambiguate AIX and IBM i 2023-10-27 16:45:27 +02:00
message vm: use internal versions of compileFunction and Script 2024-03-15 17:56:06 +00:00
node-api node-api: make tsfn accept napi_finalize once more 2024-05-07 17:03:26 +00:00
overlapped-checker
parallel test: update parallel/test-tls-dhe for OpenSSL 3.5 2025-04-04 12:59:02 +00:00
pseudo-tty test: migrate a pseudo_tty test to use assertSnapshot 2023-07-07 00:06:11 +03:00
pummel crypto: make deriveBits length parameter optional and nullable 2024-11-02 18:50:25 +01:00
report
sequential async_hooks,inspector: implement inspector api without async_wrap 2025-03-19 16:03:51 +00:00
testpy
tick-processor
tools
v8-updates test: skip v8-updates/test-linux-perf 2024-05-16 15:36:44 +00:00
wasi wasi: updates required for latest uvwasi version 2023-10-27 16:45:28 +02:00
wpt lib: fix DOMException property descriptors after being lazy loaded 2023-11-10 15:15:15 +01:00
.eslintrc.yaml test: remove unnecessary noop function args to mustNotCall() 2023-09-12 10:58:43 -04:00
README.md
root.status test: fix unreliable assumption in js-native-api/test_cannot_run_js 2024-09-26 13:38:46 +00:00

Node.js Core Tests

This directory contains code and data used to test the Node.js implementation.

For a detailed guide on how to write tests in this directory, see the guide on writing tests.

On how to run tests in this directory, see the contributing guide.

For the tests to run on Windows, be sure to clone Node.js source code with the autocrlf git config flag set to true.

Test Directories

Directory Runs on CI Purpose
abort Yes Tests that use --abort-on-uncaught-exception and other situations where we want to test something but avoid generating a core file.
addons Yes Tests for addon functionality along with some tests that require an addon.
async-hooks Yes Tests for async_hooks functionality.
benchmark Yes Test minimal functionality of benchmarks.
cctest Yes C++ tests that are run as part of the build process.
code-cache No Tests for a Node.js binary compiled with V8 code cache.
common Common modules shared among many tests. Documentation
doctool Yes Tests for the documentation generator.
es-module Yes Test ESM module loading.
fixtures Test fixtures used in various tests throughout the test suite.
internet No Tests that make real outbound network connections. Tests for networking related modules may also be present in other directories, but those tests do not make outbound connections.
js-native-api Yes Tests for Node.js-agnostic Node-API functionality.
known_issues Yes Tests reproducing known issues within the system. All tests inside of this directory are expected to fail. If a test doesn't fail on certain platforms, those should be skipped via known_issues.status.
message Yes Tests for messages that are output for various conditions (console.log, error messages etc.)
node-api Yes Tests for Node.js-specific Node-API functionality.
parallel Yes Various tests that are able to be run in parallel.
pseudo-tty Yes Tests that require stdin/stdout/stderr to be a TTY.
pummel No Various tests for various modules / system functionality operating under load.
sequential Yes Various tests that must not run in parallel.
testpy Test configuration utility used by various test suites.
tick-processor No Tests for the V8 tick processor integration. The tests are for the logic in lib/internal/v8_prof_processor.js and lib/internal/v8_prof_polyfill.js. The tests confirm that the profile processor packages the correct set of scripts from V8 and introduces the correct platform specific logic.
v8-updates No Tests for V8 performance integration.