-
Notifications
You must be signed in to change notification settings - Fork 34
/
karma.saucelabs.js
80 lines (80 loc) · 2.28 KB
/
karma.saucelabs.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
module.exports = function(config) {
var customLaunchers = {
sl_chrome: {
base: 'SauceLabs',
browserName: 'chrome',
platform: 'Windows 7',
version: '35'
},
sl_firefox: {
base: 'SauceLabs',
browserName: 'firefox',
version: '30'
},
sl_ie_11: {
base: 'SauceLabs',
browserName: 'internet explorer',
platform: 'Windows 8',
version: '10'
},
sl_ie_9: {
base: 'SauceLabs',
browserName: 'internet explorer',
platform: 'Windows 7',
version: '9'
}
};
config.set({
basePath: '',
frameworks: ['mocha', 'chai-jquery', 'jquery-1.11.0', 'chai-changes', 'sinon-chai', 'chai', 'fixture'],
files: [
'public/javascripts/vendor/xhr.min.js',
'public/javascripts/vendor/time.min.js',
'public/javascripts/vendor/timeFormat.min.js',
'public/javascripts/vendor/handlebars-v3.0.3.js',
'public/javascripts/vendor/raphael-min.js',
'public/javascripts/vendor/morris.min.js',
'public/javascripts/helpers/helper.js',
'public/javascripts/helpers/templateHelper.js',
'public/javascripts/helpers/raphaelHelper.js',
'public/javascripts/helpers/dataHelper.js',
'public/javascripts/landing-pages.js',
'public/javascripts/search.js',
'public/javascripts/traffic.js',
'public/javascripts/content.js',
'tests/**/*Spec.js',
'tests/fixtures/**/*'
],
exclude: [
'**/*.swp'
],
preprocessors: {
'tests/**/*.json' : ['json_fixtures']
},
jsonFixturesPreprocessor: {
variableName: '__json__'
},
reporters: ['progress', 'saucelabs'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['PhantomJS'],
singleRun: true,
sauceLabs: {
testName: 'Web App Unit Tests',
tunnelIdentifier: process.env.TRAVIS_JOB_NUMBER,
username: process.env.SAUCE_USERNAME,
accessKey: process.env.SAUCE_ACCESS_KEY,
startConnect: true,
recordVideo: true,
recordScreenshots: true
},
customLaunchers: customLaunchers,
browsers: Object.keys(customLaunchers),
browserDisconnectTimeout : 10000,
browserDisconnectTolerance : 1,
browserNoActivityTimeout : 4*60*1000,
captureTimeout : 4*60*1000
});
};