Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Ihrig <cjihrig@gmail.com>2022-04-15 20:37:28 +0300
committerMichaƫl Zasso <targos@protonmail.com>2022-04-28 07:56:10 +0300
commit78a860ae58bf332e9a8562233703a4eb4724f0db (patch)
tree364467d3294e38e7bb3791638823f6bcdf73a240 /src/node.cc
parentdeb3cf49c74b637905244a50f8d9ebe7b5c5cb94 (diff)
test_runner: add initial CLI runner
This commit introduces an initial version of a CLI-based test runner. PR-URL: https://github.com/nodejs/node/pull/42658 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Diffstat (limited to 'src/node.cc')
-rw-r--r--src/node.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/node.cc b/src/node.cc
index 5ba03b75407..b43f915c5d5 100644
--- a/src/node.cc
+++ b/src/node.cc
@@ -517,6 +517,10 @@ MaybeLocal<Value> StartExecution(Environment* env, StartExecutionCallback cb) {
return StartExecution(env, "internal/main/check_syntax");
}
+ if (env->options()->test_runner) {
+ return StartExecution(env, "internal/main/test_runner");
+ }
+
if (!first_argv.empty() && first_argv != "-") {
return StartExecution(env, "internal/main/run_main_module");
}