2015-06-02 10:29:09 -04:00
|
|
|
var sauceConf = require('./sauce.conf');
|
|
|
|
|
2014-09-25 17:04:46 -04:00
|
|
|
// Karma configuration
|
|
|
|
// Generated on Thu Sep 25 2014 11:52:02 GMT-0700 (PDT)
|
|
|
|
module.exports = function(config) {
|
|
|
|
config.set({
|
|
|
|
|
|
|
|
frameworks: ['jasmine'],
|
|
|
|
|
|
|
|
files: [
|
2014-10-06 20:35:00 -04:00
|
|
|
// Sources and specs.
|
2015-08-20 11:05:05 -04:00
|
|
|
// Loaded through the System loader, in `test-main.js`.
|
2015-04-27 19:11:20 -04:00
|
|
|
{pattern: 'dist/js/dev/es5/**', included: false, watched: false},
|
2014-10-06 20:35:00 -04:00
|
|
|
|
2015-09-16 17:50:03 -04:00
|
|
|
'node_modules/es6-shim/es6-shim.js',
|
|
|
|
|
2015-05-12 03:47:17 -04:00
|
|
|
// zone-microtask must be included first as it contains a Promise monkey patch
|
|
|
|
'node_modules/zone.js/dist/zone-microtask.js',
|
|
|
|
'node_modules/zone.js/dist/long-stack-trace-zone.js',
|
2015-05-19 03:13:17 -04:00
|
|
|
'node_modules/zone.js/dist/jasmine-patch.js',
|
2015-09-16 17:50:03 -04:00
|
|
|
|
2014-10-30 13:52:32 -04:00
|
|
|
// Including systemjs because it defines `__eval`, which produces correct stack traces.
|
2015-08-20 04:02:42 -04:00
|
|
|
'modules/angular2/src/test_lib/shims_for_IE.js',
|
2014-10-30 13:52:32 -04:00
|
|
|
'node_modules/systemjs/dist/system.src.js',
|
2015-09-11 18:38:09 -04:00
|
|
|
{pattern: 'node_modules/@reactivex/rxjs/dist/cjs/**', included: false, watched: false, served: true},
|
2015-04-28 21:17:00 -04:00
|
|
|
'node_modules/reflect-metadata/Reflect.js',
|
2014-12-05 19:26:30 -05:00
|
|
|
'tools/build/file2modulename.js',
|
2015-05-19 13:27:03 -04:00
|
|
|
'test-main.js',
|
2015-09-02 23:58:02 -04:00
|
|
|
{pattern: 'modules/**/test/**/static_assets/**', included: false, watched: false}
|
2014-09-25 17:04:46 -04:00
|
|
|
],
|
|
|
|
|
2015-09-11 19:00:26 -04:00
|
|
|
exclude: ['dist/js/dev/es5/**/e2e_test/**', 'dist/angular1_router.js'],
|
2015-01-08 13:02:23 -05:00
|
|
|
|
2015-06-02 10:29:09 -04:00
|
|
|
customLaunchers: sauceConf.customLaunchers,
|
|
|
|
|
|
|
|
sauceLabs: {
|
|
|
|
testName: 'Angular2',
|
|
|
|
startConnect: false,
|
|
|
|
recordVideo: false,
|
|
|
|
recordScreenshots: false,
|
2015-09-02 23:58:02 -04:00
|
|
|
options: {
|
|
|
|
'selenium-version': '2.45.0',
|
|
|
|
'command-timeout': 600,
|
|
|
|
'idle-timeout': 600,
|
|
|
|
'max-duration': 5400
|
2015-06-02 10:29:09 -04:00
|
|
|
}
|
2014-09-29 17:20:23 -04:00
|
|
|
},
|
2015-06-02 10:29:09 -04:00
|
|
|
|
2015-08-24 20:24:01 -04:00
|
|
|
browsers: ['Chrome'],
|
2014-10-09 16:50:25 -04:00
|
|
|
|
|
|
|
port: 9876
|
2014-09-25 17:04:46 -04:00
|
|
|
});
|
2015-06-02 10:29:09 -04:00
|
|
|
|
|
|
|
if (process.env.TRAVIS) {
|
|
|
|
config.sauceLabs.build = 'TRAVIS #' + process.env.TRAVIS_BUILD_NUMBER + ' (' + process.env.TRAVIS_BUILD_ID + ')';
|
|
|
|
config.sauceLabs.tunnelIdentifier = process.env.TRAVIS_JOB_NUMBER;
|
|
|
|
|
|
|
|
// TODO(mlaval): remove once SauceLabs supports websockets.
|
|
|
|
// This speeds up the capturing a bit, as browsers don't even try to use websocket.
|
|
|
|
config.transports = ['xhr-polling'];
|
|
|
|
}
|
2014-09-25 17:04:46 -04:00
|
|
|
};
|