-
Notifications
You must be signed in to change notification settings - Fork 4
/
karma.conf.js
58 lines (48 loc) · 1.16 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
module.exports = function (config) {
var customLaunchers = {
sl_chrome: {
base: 'SauceLabs',
browserName: 'chrome',
platform: 'Windows 7',
version: '41'
},
sl_firefox: {
base: 'SauceLabs',
browserName: 'firefox',
version: '37'
},
// sl_ios_safari: {
// base: 'SauceLabs',
// browserName: 'iphone',
// platform: 'OS X 10.9',
// version: '7.1'
// },
// sl_ie_11: {
// base: 'SauceLabs',
// browserName: 'internet explorer',
// platform: 'Windows 8.1',
// version: '11'
// }
};
config.set({
basePath: '.',
files: [
'./index.js',
'./node_modules/q/q.js',
'test/utils/requireFS.js',
'test/errors.test.js',
'test/index.test.js',
'test/promise.test.js',
'test/twice.test.js',
'test/mocha.test.js'
],
frameworks: ['mocha', 'sinon-chai'],
reporters: ['dots', 'saucelabs'],
browsers: process.env.NODE_ENV === 'development' ? [ 'Chrome' ] : Object.keys(customLaunchers),
customLaunchers: customLaunchers,
sauceLabs: {
testName: 'Yield-yield tests'
},
singleRun: true
});
};