-
Notifications
You must be signed in to change notification settings - Fork 16
/
karma.parallelconf.js
107 lines (101 loc) · 3.68 KB
/
karma.parallelconf.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
var fs = require('fs');
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
module.exports = function(config) {
// Lambdatest grid hostname and port
var webdriverConfig = {
hostname: 'hub.lambdatest.com',
port: 80
}
config.set({
hostname: 'localhost.lambdatest.com', // hostname, where karma web server will run
port: 9876,
basePath: './',
frameworks: ['jasmine'],
plugins: [
'karma-jasmine',
'karma-webdriver-launcher',
'karma-*',
'karma-mocha-reporter'
],
client: {
clearContext: false
},
preprocessors: {
},
files: [
'test/*.js',
'src/*.js'
],
captureTimeout: 600000,
retryLimit: 1,
browserDisconnectTimeout: 90000,
browserDisconnectTolerance: 1,
browserNoActivityTimeout: 90000,
reporters: ['mocha'],
colors: true,
concurrency: 1,
logLevel: config.LOG_DEBUG,
browsers: ['Win8.1_chrome_71','Win10_IE_11','HighSierra_Safari_11','Win10_Edge_18'],
customLaunchers: {
'Win8.1_chrome_71': {
base: 'WebDriver',
config: webdriverConfig,
browserName: 'chrome',
platform: 'Windows 8.1',
version: 'latest',
build: 'Jasmine Unit Test Demo',
name: 'Karma jasmine Sample',
tunnel: true, // In case karma is running on local machine
tunnelName:'jasmine', // In case running multiple tunnel
user: process.env.LT_USERNAME,
accessKey: process.env.LT_ACCESS_KEY,
pseudoActivityInterval: 15000 // 5000 ms heartbeat
},
'Win10_IE_11': {
base: 'WebDriver',
config: webdriverConfig,
browserName: 'internet explorer',
platform: 'Windows 10',
version: 'latest',
build: 'Jasmine Unit Test Demo',
name: 'Karma jasmine Sample',
tunnel: true, // In case karma is running on local machine
tunnelName:'jasmine', // In case running multiple tunnel
user: process.env.LT_USERNAME,
accessKey: process.env.LT_ACCESS_KEY,
pseudoActivityInterval: 15000 // 5000 ms heartbeat
},
'HighSierra_Safari_11': {
base: 'WebDriver',
config: webdriverConfig,
browserName: 'safari',
platform: 'macOS High Sierra',
version: 'latest',
build: 'Jasmine Unit Test Demo',
name: 'Karma jasmine Sample',
tunnel: true, // In case karma is running on local machine
tunnelName:'jasmine', // In case running multiple tunnel
user: process.env.LT_USERNAME,
accessKey: process.env.LT_ACCESS_KEY,
pseudoActivityInterval: 15000 // 5000 ms heartbeat
},
'Win10_Edge_18': {
base: 'WebDriver',
config: webdriverConfig,
browserName: 'MicrosoftEdge',
platform: 'Windows 10',
version: 'latest',
build: 'Jasmine Unit Test Demo',
name: 'Karma jasmine Sample',
tunnel: true, // In case karma is running on local machine
tunnelName:'jasmine', // In case running multiple tunnel
user: process.env.LT_USERNAME,
accessKey: process.env.LT_ACCESS_KEY,
pseudoActivityInterval: 15000 // 5000 ms heartbeat
}
},
singleRun: true,
autoWatch: true
});
};