-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathkarma_config_ci.js
76 lines (64 loc) · 1.53 KB
/
karma_config_ci.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
module.exports = function(config) {
if (!process.env.SAUCE_USERNAME || !process.env.SAUCE_ACCESS_KEY) {
console.error('Make sure the SAUCE_USERNAME and SAUCE_ACCESS_KEY environment variables are set.');
process.exit(1);
}
var customLaunchers = {
sl_chrome_mac: {
base: 'SauceLabs',
browserName: 'chrome',
platform: 'macOS 10.15',
version: '91.0'
}
};
config.set({
frameworks: ['mocha', 'karma-typescript'],
singleRun: true,
files: [
'node_modules/chai/chai.js',
'**/*.ts'
],
exclude: [
'demo/**/*.ts',
'dist/*.ts',
'external/**',
'node_modules/**/*.ts'
],
preprocessors: {
'**/*.ts': ['karma-typescript']
},
reporters: ['dots', 'saucelabs', 'karma-typescript'],
port: 9876,
colors: true,
browsers: Object.keys(customLaunchers),
karmaTypescriptConfig: {
tsconfig: 'tsconfig.json',
exclude: [
'demo',
'external',
'node_modules'
],
reports: {
'html': 'coverage',
'lcovonly': 'coverage'
}
},
concurrency: 1,
sauceLabs: {
testName: 'Lovefield TypeScript Port',
tunnelIdentifier: 'github-action-tunnel',
startConnect: false,
recordScreenshots: false,
public: 'public'
},
client: {
mocha: {
timeout: 10000
}
},
browserDisconnectTimeout: 10000,
browserNoActivityTimeout: 20000,
captureTimeout: 0,
customLaunchers: customLaunchers
})
} // end of module