test_runner: add reporters

PR-URL: https://github.com/nodejs/node/pull/45712
Backport-PR-URL: https://github.com/nodejs/node/pull/46839
Fixes: https://github.com/nodejs/node/issues/45648
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
This commit is contained in:
Moshe Atlow authored and Juan José Arboleda committed 2023-03-04 23:03:32 -05:00
1 parent 5fdf374c74
commit 4d50db14b3
36 files changed
+1138 -245

No files matched your search

+6
View File
@@ -558,6 +558,12 @@ EnvironmentOptionsParser::EnvironmentOptionsParser() {
AddOption("--test-name-pattern",
"run tests whose name matches this regular expression",
&EnvironmentOptions::test_name_pattern);
AddOption("--test-reporter",
"report test output using the given reporter",
&EnvironmentOptions::test_reporter);
AddOption("--test-reporter-destination",
"report given reporter to the given destination",
&EnvironmentOptions::test_reporter_destination);
AddOption("--test-only",
"run tests with 'only' option set",
&EnvironmentOptions::test_only,