Previously, when the benchmark tests ran outside of Bazel, developers had the posibility to control how the tests run through command line options. e.g. `--dryrun`. This no longer works reliable in Bazel where command line arguments are not passed to the text executable. To make the global options still usable (as they could be still useful in some cases), we just pass them through the Bazel `--test_env`. This reduces the code we need to read the command line, but still preserves the flexibility in a Bazel idiomatic way. PR Close #34753
38 lines
1.0 KiB
JavaScript
38 lines
1.0 KiB
JavaScript
/**
|
|
* @license
|
|
* Copyright Google Inc. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/
|
|
|
|
const CHROME_OPTIONS = {
|
|
'args': ['--js-flags=--expose-gc', '--no-sandbox', '--headless', '--disable-dev-shm-usage'],
|
|
'perfLoggingPrefs': {
|
|
'traceCategories':
|
|
'v8,blink.console,devtools.timeline,disabled-by-default-devtools.timeline,blink.user_timing'
|
|
}
|
|
};
|
|
|
|
exports.config = {
|
|
onPrepare: function() { beforeEach(function() { browser.ignoreSynchronization = false; }); },
|
|
restartBrowserBetweenTests: true,
|
|
allScriptsTimeout: 11000,
|
|
capabilities: {
|
|
'browserName': 'chrome',
|
|
chromeOptions: CHROME_OPTIONS,
|
|
loggingPrefs: {
|
|
performance: 'ALL',
|
|
browser: 'ALL',
|
|
}
|
|
},
|
|
directConnect: true,
|
|
framework: 'jasmine2',
|
|
jasmineNodeOpts: {
|
|
showColors: true,
|
|
defaultTimeoutInterval: 90000,
|
|
print: function(msg) { console.log(msg); },
|
|
},
|
|
useAllAngular2AppRoots: true
|
|
};
|