node/test
Phil Nash 015e27bd08
src: don't overwrite environment from .env file
This commit adds a check to see if an environment variable that is
found in the .env file is already set in the environment. If it is,
then the value from the .env file is not used.

PR-URL: https://github.com/nodejs/node/pull/49424
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
2023-09-08 06:44:36 +00:00
..
abort test: allow SIGBUS in signal-handler abort test 2023-05-05 11:03:38 +00:00
addons test: use `tmpdir.resolve()` 2023-08-21 16:41:53 +00:00
async-hooks test: use `tmpdir.resolve()` 2023-08-21 16:41:53 +00:00
benchmark url: drop ICU requirement for parsing hostnames 2023-04-05 09:05:29 -07:00
cctest test: fix compiler warning in NodeCryptoEnv 2023-08-24 16:25:09 +00:00
common test: split test-crypto-keygen.js 2023-08-31 08:50:28 +00:00
doctool test: use `tmpdir.resolve()` 2023-08-21 16:41:53 +00:00
embedding test: fix warning for comment in embedtest 2023-09-02 10:53:52 +00:00
es-module esm: refactor test-esm-loader-resolve-type 2023-09-06 22:30:09 +00:00
fixtures src: don't overwrite environment from .env file 2023-09-08 06:44:36 +00:00
fuzzers
internet test: use `tmpdir.resolve()` 2023-08-21 16:41:53 +00:00
js-native-api node-api: implement external strings 2023-06-13 21:54:03 -07:00
known_issues doc,test: add known path resolution issue in permission model 2023-08-31 06:58:59 +00:00
message test: migrate message source map tests from Python to JS 2023-08-29 10:36:23 +00:00
node-api test,benchmark: use `tmpdir.fileURL()` 2023-08-21 16:42:03 +00:00
overlapped-checker
parallel src: don't overwrite environment from .env file 2023-09-08 06:44:36 +00:00
pseudo-tty test: migrate a pseudo_tty test to use assertSnapshot 2023-05-04 08:34:23 +00:00
pummel test: use `tmpdir.resolve()` 2023-08-21 16:41:53 +00:00
report test: use `tmpdir.resolve()` 2023-08-21 16:41:53 +00:00
sequential process: add custom dir support for heapsnapshot-signal 2023-09-05 15:13:01 -07:00
testpy
tick-processor test: use `tmpdir.resolve()` 2023-08-21 16:41:53 +00:00
tools build: replace js2c.py with js2c.cc 2023-05-24 13:33:01 +02:00
v8-updates
wasi test: use `tmpdir.resolve()` 2023-08-21 16:41:53 +00:00
wpt stream: implement ReadableStream.from 2023-07-18 09:50:22 +00:00
.eslintrc.yaml test: remove unnecessary noop function args to `mustNotCall()` 2023-06-24 16:16:07 +02:00
README.md
root.status test: mark test_cannot_run_js as flaky 2023-05-27 23:40:05 +00:00

README.md

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.