tree: b0b7d814e46e9d20281f6c93dd3a06f4b5cb15d4 [path history] [tgz]
  1. abort/
  2. addons/
  3. async-hooks/
  4. benchmark/
  5. cctest/
  6. common/
  7. doctool/
  8. embedding/
  9. errors/
  10. es-module/
  11. fixtures/
  12. fuzzers/
  13. internet/
  14. js-native-api/
  15. known_issues/
  16. message/
  17. node-api/
  18. overlapped-checker/
  19. parallel/
  20. pseudo-tty/
  21. pummel/
  22. report/
  23. sequential/
  24. testpy/
  25. tick-processor/
  26. tools/
  27. v8-updates/
  28. wasi/
  29. wpt/
  30. .eslintrc.yaml
  31. README.md
  32. root.status
test/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

DirectoryRuns on CIPurpose
abortYesTests that use --abort-on-uncaught-exception and other situations where we want to test something but avoid generating a core file.
addonsYesTests for addon functionality along with some tests that require an addon.
async-hooksYesTests for async_hooks functionality.
benchmarkYesTest minimal functionality of benchmarks.
cctestYesC++ tests that are run as part of the build process.
code-cacheNoTests for a Node.js binary compiled with V8 code cache.
commonCommon modules shared among many tests. Documentation
doctoolYesTests for the documentation generator.
es-moduleYesTest ESM module loading.
fixturesTest fixtures used in various tests throughout the test suite.
internetNoTests 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-apiYesTests for Node.js-agnostic Node-API functionality.
known_issuesYesTests 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.
messageYesTests for messages that are output for various conditions (console.log, error messages etc.)
node-apiYesTests for Node.js-specific Node-API functionality.
parallelYesVarious tests that are able to be run in parallel.
pseudo-ttyYesTests that require stdin/stdout/stderr to be a TTY.
pummelNoVarious tests for various modules / system functionality operating under load.
sequentialYesVarious tests that must not run in parallel.
testpyTest configuration utility used by various test suites.
tick-processorNoTests 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-updatesNoTests for V8 performance integration.