0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/test
Benjamin Coe a1b6cfd362
build: run es-module tests in CI
Add es-module to CI_JS_SUITES/js_test_suites, so that tests run in CI.
Update test/README adding es-module section.

PR-URL: https://github.com/nodejs/node/pull/15276
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Timothy Gu <timothygu99@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
2017-09-27 21:46:24 -04:00
..
abort test,process: run 'abort' suite on Windows 2017-09-03 17:20:20 -04:00
addons test: skip test when checking async_hooks 2017-09-27 04:15:43 -06:00
addons-napi n-api: fix warning about size_t compare with int 2017-09-24 10:47:27 -04:00
async-hooks async_hooks,doc: some async_hooks improvements 2017-09-15 09:06:13 -07:00
cctest test: fixing AliasedBuffer tests to enter Isolate 2017-09-24 13:35:58 -03:00
common test: print resource stack on error 2017-09-27 04:15:39 -06:00
doctool test: continue normalizing fixtures use 2017-08-27 21:14:34 -03:00
es-module build: run es-module tests in CI 2017-09-27 21:46:24 -04:00
fixtures url: fix windows drive letter handling 2017-09-24 14:12:56 -03:00
gc lib,src: fix consistent spacing inside braces 2017-07-21 15:13:47 -04:00
inspector inspector: break in eval script 2017-09-20 09:18:16 -07:00
internet dgram: added setMulticastInterface() 2017-09-14 17:03:19 +02:00
known_issues test: remove invalid test 2017-09-13 17:15:11 -03:00
message test: remove faulty test case 2017-09-11 00:28:14 -03:00
parallel http: client keep-alive for UNIX domain sockets 2017-09-27 18:31:17 -07:00
pseudo-tty test: adjust indentation for stricter linting 2017-07-27 09:24:20 -07:00
pummel test: continue normalizing fixtures use 2017-08-27 21:14:34 -03:00
sequential test: fix flaky test-http2-session-timeout 2017-09-18 15:19:46 +02:00
testpy module: Allow runMain to be ESM 2017-09-07 15:18:32 -05:00
tick-processor fix --prof-process --preprocess flag 2017-08-23 08:19:14 -07:00
timers test: adjust indentation for stricter linting 2017-07-27 09:24:20 -07:00
.eslintrc.yaml tools: add eslint rule for inspector checking 2017-08-30 18:03:51 -03:00
README.md build: run es-module tests in CI 2017-09-27 21:46:24 -04: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.

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.
cctest Yes C++ test that is run as part of the build process.
common Common modules shared among many tests. Documentation
es-module Yes Test ESM module loading.
fixtures Test fixtures used in various tests throughout the test suite.
gc No Tests for garbage collection related functionality.
inspector Yes Tests for the V8 inspector integration.
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.
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.)
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.
timers No Tests for timing utilities (setTimeout and setInterval).

When a new test directory is added, make sure to update the CI_JS_SUITES variable in the Makefile and the js_test_suites variable in vcbuild.bat.