forked from FirebaseExtended/angularfire
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsauce_karma.conf.js
More file actions
51 lines (43 loc) · 1.39 KB
/
sauce_karma.conf.js
File metadata and controls
51 lines (43 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// Configuration file for Karma
// http://karma-runner.github.io/0.10/config/configuration-file.html
module.exports = function(config) {
var customLaunchers = require('./browsers.json')
.reduce(function (browsers, browser) {
browsers[(browser.name + '_v' + browser.version).replace(/(\.|\s)/g, '_')] = {
base: 'SauceLabs',
browserName: browser.name,
platform: browser.platform,
version: browser.version
};
return browsers;
}, {});
var browsers = Object.keys(customLaunchers);
config.set({
basePath: '',
frameworks: ['jasmine'],
files: [
'../node_modules/angular/angular.js',
'../node_modules/angular-mocks/angular-mocks.js',
'../node_modules/mockfirebase/browser/mockfirebase.js',
'lib/**/*.js',
'../dist/angularfire.js',
'mocks/**/*.js',
'initialize.js',
'unit/**/*.spec.js'
],
logLevel: config.LOG_INFO,
transports: ['xhr-polling'],
sauceLabs: {
testName: 'AngularFire Unit Tests',
startConnect: false,
tunnelIdentifier: process.env.TRAVIS_JOB_NUMBER
},
captureTimeout: 0,
browserNoActivityTimeout: 120000,
//Recommend starting Chrome manually with experimental javascript flag enabled, and open localhost:9876.
customLaunchers: customLaunchers,
browsers: browsers,
reporters: ['dots', 'saucelabs'],
singleRun: true
});
};