diff --git a/lib/test.js b/lib/test.js index 6de720bf0048..5356f819ac51 100644 --- a/lib/test.js +++ b/lib/test.js @@ -16,6 +16,10 @@ const test = (suite, buildConfig = config.defaultBuildConfig, options) => { braveArgs.push('--gtest_filter=' + options.filter) } + if (options.output) { + braveArgs.push('--gtest_output=xml:' + options.output) + } + if (options.disable_brave_extension) { braveArgs.push('--disable-brave-extension') } diff --git a/scripts/commands.js b/scripts/commands.js index da7713d6cec3..c471b2e5ec74 100644 --- a/scripts/commands.js +++ b/scripts/commands.js @@ -103,6 +103,7 @@ program .command('test ') .option('--v [log_level]', 'set log level to [log_level]', parseInt, '0') .option('--filter ', 'set test filter') + .option('--output ', 'set test output (results) file path') .option('--disable_brave_extension', 'disable loading the Brave extension') .option('--single_process', 'uses a single process to run tests to help with debugging') .option('--test_launcher_jobs ', 'Number of jobs to launch')