forked from videojs/video.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.js
124 lines (106 loc) · 2.87 KB
/
karma.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
123
124
module.exports = function(config) {
var customLaunchers = {
chrome_sl: {
singleRun: true,
base: 'SauceLabs',
browserName: 'chrome',
platform: 'Windows 7',
version: '34'
},
firefox_sl: {
singleRun: true,
base: 'SauceLabs',
browserName: 'firefox',
platform: 'Windows 8'
},
safari_sl: {
singleRun: true,
base: 'SauceLabs',
browserName: 'safari',
platform: 'OS X 10.8'
},
ipad_sl: {
singleRun: true,
base: 'SauceLabs',
browserName: 'ipad',
platform:'OS X 10.9',
version: '7.1'
},
android_sl: {
singleRun: true,
base: 'SauceLabs',
browserName: 'android',
platform:'Linux'
}
};
config.set({
basePath: '',
frameworks: ['qunit', 'sinon'],
autoWatch: false,
singleRun: true,
customLaunchers: customLaunchers,
files: [
'../test/karma-qunit-shim.js',
"../src/js/core.js",
"../src/js/core-object.js",
"../src/js/events.js",
"../src/js/lib.js",
"../src/js/util.js",
"../src/js/component.js",
"../src/js/button.js",
"../src/js/slider.js",
"../src/js/menu.js",
"../src/js/media-error.js",
"../src/js/player.js",
"../src/js/control-bar/control-bar.js",
"../src/js/control-bar/live-display.js",
"../src/js/control-bar/play-toggle.js",
"../src/js/control-bar/time-display.js",
"../src/js/control-bar/fullscreen-toggle.js",
"../src/js/control-bar/progress-control.js",
"../src/js/control-bar/volume-control.js",
"../src/js/control-bar/mute-toggle.js",
"../src/js/control-bar/volume-menu-button.js",
"../src/js/control-bar/playback-rate-menu-button.js",
"../src/js/poster.js",
"../src/js/loading-spinner.js",
"../src/js/big-play-button.js",
"../src/js/error-display.js",
"../src/js/media/media.js",
"../src/js/media/html5.js",
"../src/js/media/flash.js",
"../src/js/media/loader.js",
"../src/js/tracks.js",
"../src/js/json.js",
"../src/js/setup.js",
"../src/js/plugins.js",
'../test/unit/*.js'
],
plugins: [
'karma-qunit',
'karma-chrome-launcher',
'karma-firefox-launcher',
'karma-ie-launcher',
'karma-opera-launcher',
'karma-phantomjs-launcher',
'karma-safari-launcher',
'karma-sauce-launcher',
'karma-sinon'
],
reporters: ['dots'],
// web server port
port: 9876,
// cli runner port
runnerPort: 9100,
colors: true,
logLevel: config.LOG_INFO,
captureTimeout: 60000,
sauceLabs: {
startConnect: true,
tunnelIdentifier: process.env.TRAVIS_JOB_NUMBER,
build: process.env.TRAVIS_BUILD_NUMBER,
testName: process.env.TRAVIS_BUILD_NUMBER + process.env.TRAVIS_BRANCH,
recordScreenshots: false
}
});
};