forked from LucyBot-Inc/api-spec-converter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
50 lines (43 loc) · 1.2 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
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.1',
version: '11'
}
};
var browsers = ['PhantomJS'];
if (process.env.SAUCE === "true") {
browsers = browsers.concat(Object.keys(customLaunchers));
}
config.set({
frameworks: ['mocha', 'chai'],
files: [
'dist/api-spec-converter.js',
'test/setup/browser.js',
'test/test-cases.js',
'test/*.js',
{pattern: 'test/input/**/*', included: false, watched: false, served: true},
{pattern: 'test/output/**/*', included: false, watched: false, served: true}
],
proxies: {
'/test/': '/base/test/'
},
reporters: ['mocha'],
customLaunchers: customLaunchers,
browsers: browsers,
browserNoActivityTimeout: 30000
});
}