From bc6fc52f643caf70e132da3d5b014ec4c1609d90 Mon Sep 17 00:00:00 2001 From: Lenvin Gonsalves Date: Mon, 18 Jul 2022 15:24:01 +0530 Subject: [PATCH] test_runner: introduces test_concurrency flag adds the test_concurrency flag, if set to true, runs all the tests in parallel Fixes: https://github.com/nodejs/node/issues/43837 --- doc/api/cli.md | 8 ++++++++ lib/internal/test_runner/test.js | 15 ++++++++++++--- src/node_options.cc | 3 +++ src/node_options.h | 1 + 4 files changed, 24 insertions(+), 3 deletions(-) diff --git a/doc/api/cli.md b/doc/api/cli.md index a2861024659af22..22a2427977605ab 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -1108,6 +1108,14 @@ Starts the Node.js command line test runner. This flag cannot be combined with `--check`, `--eval`, `--interactive`, or the inspector. See the documentation on [running tests from the command line][] for more details. +### `--test-concurrency` + + + +Configures the test runner to run sub tests in parallel. + ### `--test-only`