forked from platanus/angular-rut
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma-sauce.conf.js
122 lines (103 loc) · 3.22 KB
/
karma-sauce.conf.js
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
// Karma configuration
// Generated on Fri Aug 09 2013 14:14:35 GMT-0500 (CDT)
module.exports = function(config) {
config.set({
// Base path, that will be used to resolve files and exclude
basePath: '',
// Load jasmine and requirejs (require is used by the readme spec)
frameworks: ['jasmine'],
// List of files / patterns to load in the browser
files: [
// libraries
'bower_components/angular/angular.js',
'bower_components/angular-mocks/angular-mocks.js',
// our app
'src/*.js',
// the specs
// Do not run the README test since it requires requirejs and I could make it work on sauce
'test/**/*spec.js'
],
// Karma plugins
plugins: [
'karma-jasmine',
'karma-sauce-launcher'
],
// List of files to exclude
exclude: [
'test/readme-spec.js'
],
// Test results reporter to use
// possible values: 'dots', 'progress', 'junit'
reporters: ['progress', 'saucelabs'],
// Enable / disable colors in the output (reporters and logs)
colors: true,
// Level of logging
// possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG
logLevel: config.LOG_INFO,
// Enable / disable watching file and executing tests whenever any file changes
autoWatch: false,
// Broser connection tolerances (partially based on angularjs configuration)
captureTimeout: 0,
browserDisconnectTolerance: 2,
browserDisconnectTimeout: 10000,
browserNoActivityTimeout: 60000,
// Disable websocket for full browser tests
transports: ['xhr-polling'],
// Continuous Integration mode by default
singleRun: true,
// Sauce config, requires username and accessKey to be loaded in ENV
sauceLabs: {
testName: 'Angular Rut Tests',
startConnect: false
},
// Custom sauce launchers
customLaunchers:
{
'SL_Chrome': {
base: 'SauceLabs',
browserName: 'chrome',
version: '34'
},
'SL_Firefox': {
base: 'SauceLabs',
browserName: 'firefox',
version: '26'
},
'SL_Safari': {
base: 'SauceLabs',
browserName: 'safari',
platform: 'OS X 10.9',
version: '7'
},
'SL_IE_8': { // TODO: fix IE8 tests, for some reason tests do not work as expected (but library does), maybe is a jasmine/angularjs issue?
base: 'SauceLabs',
browserName: 'internet explorer',
platform: 'Windows XP',
version: '8'
},
'SL_IE_9': {
base: 'SauceLabs',
browserName: 'internet explorer',
platform: 'Windows 2008',
version: '9'
},
'SL_IE_10': {
base: 'SauceLabs',
browserName: 'internet explorer',
platform: 'Windows 2012',
version: '10'
},
'SL_IE_11': {
base: 'SauceLabs',
browserName: 'internet explorer',
platform: 'Windows 8.1',
version: '11'
}
},
browsers: ['SL_Chrome', 'SL_Firefox', 'SL_Safari', 'SL_IE_9', 'SL_IE_10', 'SL_IE_11']
});
// set tunnel identifier for travis builds, by default it uses the job number.
if (process.env.TRAVIS) {
config.sauceLabs.tunnelIdentifier = process.env.TRAVIS_JOB_NUMBER;
}
};