From 060c85102ea02b27f92228515fb1827af2bf88f7 Mon Sep 17 00:00:00 2001 From: Lenvin Gonsalves Date: Mon, 18 Jul 2022 15:24:01 +0530 Subject: [PATCH 01/15] 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 | 1 - src/node_options.cc | 3 +++ src/node_options.h | 1 + 4 files changed, 12 insertions(+), 1 deletion(-) diff --git a/doc/api/cli.md b/doc/api/cli.md index f0a2e70b8d7b66..499fdafe404c65 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -1116,6 +1116,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` -Configures the test runner to run sub tests in parallel. +Configures the test concurrently. ### `--test-only` From 947d7ba225163fd0169fb8c32a77404ec27258fb Mon Sep 17 00:00:00 2001 From: Lenvin Gonsalves Date: Mon, 18 Jul 2022 16:41:40 +0530 Subject: [PATCH 03/15] test_runner: fix concurrently flag documentation --- doc/api/cli.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/cli.md b/doc/api/cli.md index 59e6f66b7717dc..6ce9c991e5eafc 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -1122,7 +1122,7 @@ on [running tests from the command line][] for more details. added: REPLACEME --> -Configures the test concurrently. +Configures the tests to run concurrently. ### `--test-only` From 0bd2eed00a14d0c91e7ae953862ab7a39a5a48ff Mon Sep 17 00:00:00 2001 From: Lenvin Gonsalves Date: Mon, 18 Jul 2022 19:01:13 +0530 Subject: [PATCH 04/15] test_runner: use exiting option instead of cli --- doc/api/cli.md | 8 -------- lib/internal/test_runner/test.js | 10 +++++++++- src/node_options.cc | 3 --- src/node_options.h | 1 - 4 files changed, 9 insertions(+), 13 deletions(-) diff --git a/doc/api/cli.md b/doc/api/cli.md index 6ce9c991e5eafc..f0a2e70b8d7b66 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -1116,14 +1116,6 @@ 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 tests to run concurrently. - ### `--test-only`