2014-12-22 20:50:10 -05:00
|
|
|
var config = exports.config = {
|
|
|
|
|
|
|
|
specs: ['modules/*/test/**/*_perf.js'],
|
|
|
|
|
|
|
|
params: {
|
2014-12-29 17:20:48 -05:00
|
|
|
// size of the sample to take
|
|
|
|
sampleSize: 10,
|
|
|
|
// error to be used for early exit
|
|
|
|
exitOnErrorLowerThan: 4,
|
|
|
|
// maxium number times the benchmark gets repeated before we output the stats
|
|
|
|
// of the best sample
|
|
|
|
maxRepeatCount: 30
|
2014-12-22 20:50:10 -05:00
|
|
|
},
|
|
|
|
|
|
|
|
// Disable waiting for Angular as we don't have an integration layer yet...
|
|
|
|
// TODO(tbosch): Implement a proper debugging API for Ng2.0, remove this here
|
|
|
|
// and the sleeps in all tests.
|
|
|
|
onPrepare: function() {
|
|
|
|
browser.ignoreSynchronization = true;
|
2014-12-29 17:20:48 -05:00
|
|
|
var _get = browser.get;
|
|
|
|
var sleepInterval = process.env.TRAVIS ? 5000 : 1000;
|
|
|
|
browser.get = function() {
|
|
|
|
browser.sleep(sleepInterval);
|
|
|
|
return _get.apply(this, arguments);
|
|
|
|
}
|
2014-12-22 20:50:10 -05:00
|
|
|
},
|
|
|
|
|
|
|
|
jasmineNodeOpts: {
|
|
|
|
showColors: true,
|
|
|
|
defaultTimeoutInterval: 30000
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
// TODO: add real mobile devices via a cloud provider that supports appium
|
|
|
|
if (process.env.TRAVIS) {
|
|
|
|
config.capabilities = {
|
|
|
|
name: 'Dartium',
|
|
|
|
browserName: 'chrome',
|
|
|
|
chromeOptions: {
|
|
|
|
'binary': process.env.DARTIUM,
|
|
|
|
'args': ['--js-flags=--expose-gc']
|
|
|
|
},
|
|
|
|
loggingPrefs: {
|
|
|
|
performance: 'ALL'
|
|
|
|
}
|
|
|
|
};
|
|
|
|
} else {
|
|
|
|
config.capabilities = {
|
|
|
|
browserName: 'chrome',
|
|
|
|
chromeOptions: {
|
|
|
|
'args': ['--js-flags=--expose-gc']
|
|
|
|
},
|
|
|
|
loggingPrefs: {
|
|
|
|
performance: 'ALL'
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|