0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/test
dnlup f0b3855a90
net: remove usage of require('util')
Use `require('internal/util/inspect').inspect`,
`require('internal/util/debuglog').debuglog`,
`require('internal/util').deprecate` and `Object.setPrototypeOf` instead
of `require('util')`.
Fix test in `test/parallel/test-net-access-byteswritten.js` to do not
check the `super_` property that was set when using
`require('util').inherits`.

Refs: https://github.com/nodejs/node/issues/26546
Refs: https://github.com/nodejs/node/pull/26896

PR-URL: https://github.com/nodejs/node/pull/26920
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
2019-03-30 13:13:42 +01:00
..
abort test: remove usage of process.binding() 2019-03-07 17:43:21 +01:00
addons esm: phase two of new esm implementation 2019-03-27 15:52:11 -04:00
async-hooks benchmark,doc,lib: capitalize more comments 2019-03-27 17:20:06 +01:00
benchmark
cctest src: inline macro DISALLOW_COPY_AND_ASSIGN 2019-03-17 21:58:22 -04:00
code-cache
common test: move hasCrypto check 2019-03-29 10:58:42 +01:00
doctool
es-module esm: phase two of new esm implementation 2019-03-27 15:52:11 -04:00
fixtures crypto: decode missing passphrase errors 2019-03-30 10:31:43 +01:00
internet test: refactor test-dgram-broadcast-multi-process 2019-03-23 19:58:04 -07:00
js-native-api benchmark,doc,lib: capitalize more comments 2019-03-27 17:20:06 +01:00
known_issues test: add known_issues test for fs.copyFile() 2019-03-29 19:17:16 -07:00
message esm: phase two of new esm implementation 2019-03-27 15:52:11 -04:00
node-api src: de-lint header usage 2019-03-12 09:57:19 -04:00
parallel net: remove usage of require('util') 2019-03-30 13:13:42 +01:00
pseudo-tty repl: check colors with .getColorDepth() 2019-03-21 23:34:14 +01:00
pummel benchmark,doc,lib: capitalize more comments 2019-03-27 17:20:06 +01:00
report report: rename triggerReport() to writeReport() 2019-03-10 17:16:13 -04:00
sequential benchmark,doc,lib: capitalize more comments 2019-03-27 17:20:06 +01:00
testpy
tick-processor
v8-updates test: update postmortem metadata test for V8 7.4 2019-03-28 16:39:35 -04:00
wpt src,lib: make DOMException available in all Contexts 2019-03-15 16:54:19 +01:00
.eslintrc.yaml lib,test: improve faulty assert usage detection 2019-03-13 18:50:35 +01:00
README.md
root.status tools: remove eslint rule no-let-in-for-declaration 2019-03-26 09:46:41 -07: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 successfully run on Windows, Node.js has to be checked out from GitHub with the autocrlf git config flag set to true.

Test Directories

Directory Runs on CI Purpose
abort Yes Tests for when the --abort-on-uncaught-exception flag is used.
addons Yes Tests for addon functionality along with some tests that require an addon to function properly.
async-hooks Yes Tests for async_hooks functionality.
benchmark No 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 connections (mainly networking related modules). 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 n-api functionality.
known_issues Yes Tests reproducing known issues within the system. All tests inside of this directory are expected to fail consistently. 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 n-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 are run sequentially.
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.