0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/test
Ruben Bridgewater d47b6786c9
assert: wrap validation function errors
This makes sure that validation function used by `assert.throws` and
`assert.rejects` always throw validatin errors instead of rethrowing
the received error.

That should improve the debugging experience for developers since
they have a better context where the error is coming from and they
also get to know what triggered it.

PR-URL: https://github.com/nodejs/node/pull/28263
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2019-10-01 22:55:11 +02:00
..
abort
addons test: simplify force-context-aware test 2019-09-29 08:42:08 -04:00
async-hooks test: disable core dumps before running crash test 2019-09-08 21:19:35 -07:00
benchmark benchmark: improve process.env benchmarks 2019-09-18 23:24:42 +02:00
cctest
common bootstrap: add exception handling for profiler bootstrap 2019-09-23 12:04:20 +02:00
doctool
es-module src: rename --loader to --experimental-loader 2019-09-30 21:47:01 -07:00
fixtures module: pass full URL to loader for top-level load 2019-09-29 20:12:24 -07:00
internet
js-native-api n-api: mark version 5 N-APIs as stable 2019-09-05 09:16:54 -07:00
known_issues
message
node-api n-api: mark version 5 N-APIs as stable 2019-09-05 09:16:54 -07:00
parallel assert: wrap validation function errors 2019-10-01 22:55:11 +02:00
pseudo-tty
pummel
report
sequential test: fix flaky test-cluster-net-listen-ipv6only-none 2019-09-30 18:56:17 -07:00
testpy
tick-processor
tools
v8-updates
wpt doc: update list style in misc README docs 2019-09-17 21:30:42 -07:00
.eslintrc.yaml
README.md
root.status

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 for when the --abort-on-uncaught-exception flag is used.
addons Yes Tests for addon functionality along with some tests that require an addon.
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 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 n-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 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 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.