forked from juice-shop/juice-shop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf-ci.js
100 lines (88 loc) · 2.78 KB
/
karma.conf-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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
module.exports = function (config) {
'use strict'
var customLaunchers = {
sl_chrome: {
base: 'SauceLabs',
browserName: 'chrome',
platform: 'Linux',
version: '46'
},
sl_firefox: {
base: 'SauceLabs',
browserName: 'firefox',
platform: 'Linux',
version: '42'
},
sl_edge_20: {
base: 'SauceLabs',
browserName: 'MicrosoftEdge',
platform: 'Windows 10',
version: '20'
},
sl_ie_11: {
base: 'SauceLabs',
browserName: 'internet explorer',
platform: 'Windows 8.1',
version: '11'
},
sl_ie_9: {
base: 'SauceLabs',
browserName: 'internet explorer',
platform: 'Windows 7',
version: '10'
},
sl_safari: {
base: 'SauceLabs',
browserName: 'safari',
platform: 'OS X 10.11',
version: '9'
}
}
config.set({
basePath: '',
files: [
'app/bower_components/angular/angular.js',
'app/bower_components/angular-translate/angular-translate.js',
'app/bower_components/angular-translate-loader-static-files/angular-translate-loader-static-files.js',
'app/bower_components/angular-route/angular-route.js',
'app/bower_components/angular-mocks/angular-mocks.js',
'app/bower_components/angular-cookies/angular-cookies.js',
'app/bower_components/angular-touch/angular-touch.js',
'app/bower_components/angular-animate/angular-animate.js',
'app/bower_components/angular-bootstrap/ui-bootstrap.js',
'app/bower_components/angular-bootstrap/ui-bootstrap-tpls.js',
'app/bower_components/underscore/underscore.js',
'app/bower_components/jquery/dist/jquery.js',
'app/bower_components/ng-file-upload/ng-file-upload.js',
'app/bower_components/angular-socket.io-mock/angular-socket.io-mock.js',
'app/bower_components/clipboard/dist/clipboard.js',
'app/bower_components/ngclipboard/dist/ngclipboard.js',
'app/js/app.js',
'app/js/**/*.js',
'test/client/**/*.js'
],
sauceLabs: {
testName: 'OWASP Juice Shop Unit Tests',
username: process.env.SAUCE_USERNAME,
accessKey: process.env.SAUCE_ACCESS_KEY,
connectOptions: {
tunnelIdentifier: process.env.TRAVIS_JOB_NUMBER,
port: 4446
},
build: process.env.TRAVIS_BUILD_NUMBER,
tags: [process.env.TRAVIS_BRANCH, process.env.TRAVIS_BUILD_NUMBER, 'unit'],
recordScreenshots: false,
recordVideo: false
},
browserDisconnectTimeout: 10000,
browserDisconnectTolerance: 1,
browserNoActivityTimeout: 4 * 60 * 1000,
captureTimeout: 4 * 60 * 1000,
colors: true,
singleRun: true,
frameworks: ['jasmine'],
browsers: Object.keys(customLaunchers),
customLaunchers: customLaunchers,
reporters: ['dots', 'saucelabs']
})
}