This repository has been archived by the owner on Jan 3, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkarma.conf.js
88 lines (84 loc) · 2.08 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
'use strict';
if (!process.env.SAUCE_USERNAME || !process.env.SAUCE_ACCESS_KEY) {
console.log('Make sure the SAUCE_USERNAME and SAUCE_ACCESS_KEY environment variables are set.');
process.exit(1);
}
var customLaunchers = {
sauceLabsInternetExplorer9: {
base: 'SauceLabs',
browserName: 'internet explorer',
platform: 'Windows 7',
version: '9.0'
},
sauceLabsInternetExplorer10: {
base: 'SauceLabs',
browserName: 'internet explorer',
platform: 'Windows 7',
version: '10.0'
},
sauceLabsInternetExplorer11: {
base: 'SauceLabs',
browserName: 'internet explorer',
platform: 'Windows 7',
version: '11.0'
},
sauceLabsChrome: {
base: 'SauceLabs',
browserName: 'chrome',
platform: 'Linux',
version: '39.0'
},
sauceLabsFirefox: {
base: 'SauceLabs',
browserName: 'firefox',
platform: 'Linux',
version: '34.0'
},
sauceLabsSafari7: {
base: 'SauceLabs',
browserName: 'safari',
platform: 'Mac 10.9',
version: '7.0'
},
sauceLabsSafari8: {
base: 'SauceLabs',
browserName: 'safari',
platform: 'Mac 10.10',
version: '8.0'
}
};
module.exports = function (config) {
config.set({
autoWatch: false,
browsers: Object.keys(customLaunchers),
captureTimeout: 120000,
colors: true,
customLaunchers: customLaunchers,
files: [
'test/ts.test.js'
],
frameworks: [
'browserify',
'mocha'
],
logLevel: 'LOG_DEBUG',
preprocessors: {
'test/ts.test.js': 'browserify'
},
reporters: [
'saucelabs',
'spec'
],
sauceLabs: {
connectOptions: {
port: 5757
},
recordScreenshots: false,
testName: 'typesystem browser test'
},
singleRun: true,
browserify: {
debug: true
}
});
};