-
Notifications
You must be signed in to change notification settings - Fork 80
/
karma.browserstack.conf.js
109 lines (109 loc) · 2.5 KB
/
karma.browserstack.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine'],
files: [
'dist/css/light-theme.css',
'dist/js/jquery-3.1.1.js',
'node_modules/jasmine-jquery/lib/jasmine-jquery.js',
'dist/js/d3.v4.js',
'dist/js/sohoxi.js',
'dist/js/cultures/en-US.js',
'components/**/*.spec.js'
],
exclude: [
'node_modules'
],
browserStack: {
username: process.env.BROWSER_STACK_USERNAME,
accessKey: process.env.BROWSER_STACK_ACCESS_KEY,
startTunnel: true,
build: 'Unit',
name: 'Unit tests'
},
customLaunchers: {
bs_firefox_mac: {
base: 'BrowserStack',
browser: 'Firefox',
browser_version: '58.0',
os_version: 'High Sierra',
os: 'OS X',
resolution: '1024x768'
},
bs_safari_mac: {
base: 'BrowserStack',
browser: 'Safari',
browser_version: '11.0',
os_version: 'High Sierra',
os: 'OS X',
resolution: '1024x768'
},
bs_ie_windows: {
base: 'BrowserStack',
browser: 'IE',
browser_version: '11.0',
os_version: '10',
os: 'Windows',
resolution: '1024x768'
},
bs_chrome_windows: {
base: 'BrowserStack',
browser: 'Chrome',
browser_version: '65',
os_version: '10',
os: 'Windows',
resolution: '1024x768'
}
},
preprocessors: {
'components/**/*.spec.js': ['webpack'],
'dist/js/sohoxi.js': ['coverage']
},
webpack: {
module: {
rules: [
{
test: /\.html$/,
use: [{
loader: 'html-loader'
}],
},
{
test: /\.js$/,
use: [{
loader: 'babel-loader',
options: {
presets: ['env']
}
}],
exclude: /node_modules/
}
]
}
},
webpackMiddleware: {
stats: 'errors-only'
},
reporters: ['mocha', 'coverage', 'BrowserStack'],
coverageReporter: {
includeAllSources: true,
dir: 'coverage/',
reporters: [
{ type: 'html', subdir: 'html' },
{ type: 'text-summary' }
]
},
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: [
'bs_firefox_mac',
'bs_safari_mac',
'bs_ie_windows',
'bs_chrome_windows'
],
singleRun: true,
concurrency: 1
});
};