Skip to content

Commit c92c037

Browse files
authored
Merge pull request brave#1241 from brave/added-option-to-output-test-results-to-file
added option to output test results to file
2 parents d3d72c2 + 6ce9797 commit c92c037

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

lib/test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ const test = (suite, buildConfig = config.defaultBuildConfig, options) => {
1616
braveArgs.push('--gtest_filter=' + options.filter)
1717
}
1818

19+
if (options.output) {
20+
braveArgs.push('--gtest_output=xml:' + options.output)
21+
}
22+
1923
if (options.disable_brave_extension) {
2024
braveArgs.push('--disable-brave-extension')
2125
}

scripts/commands.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ program
103103
.command('test <suite>')
104104
.option('--v [log_level]', 'set log level to [log_level]', parseInt, '0')
105105
.option('--filter <filter>', 'set test filter')
106+
.option('--output <output>', 'set test output (results) file path')
106107
.option('--disable_brave_extension', 'disable loading the Brave extension')
107108
.option('--single_process', 'uses a single process to run tests to help with debugging')
108109
.option('--test_launcher_jobs <test_launcher_jobs>', 'Number of jobs to launch')

0 commit comments

Comments
 (0)