-
Notifications
You must be signed in to change notification settings - Fork 2.5k
/
bender.js
167 lines (150 loc) · 4.2 KB
/
bender.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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
/* jshint browser: false, node: true */
/**
* Bender configuration file
*
* @param {Object} licenseKey CKEditor 4 license key, enabled globally for testing.
* @param {Object} applications Applications used in current project
* @param {Array} browsers List of browsers used for testing
* @param {Number} captureTimeout Timeout before which a launched browser should connect to the server
* @param {String} certificate Location of the certificate file
* @param {Boolean} debug Enable debug logs
* @param {Number} defermentTimeout Timeout before which a plugin should finish initializing on a test page
* @param {String} framework Default framework used for the tests
* @param {String} hostname Host on which the HTTP and WebSockets servers will listen
* @param {Array} manualBrowsers List of browsers accepting manual tests
* @param {Number} manualTestTimeout Timeout after which a manual test is marked as failed
* @param {Array} plugins List of Bender plugins to load at startup (Required)
* @param {Number} port Port on which the HTTP and WebSockets servers will listen
* @param {String} privateKey Location of the private key file
* @param {Boolean} secure Flag telling whether to serve contents over HTTPS and WSS
* @param {Number} slowAvgThreshold Average test case duration threshold above which a test is marked as slow
* @param {Number} slowThreshold Test duration threshold above which a test is marked as slow
* @param {String} startBrowser Name of a browser to start when executing bender run command
* @param {Number} testRetries Number of retries to perform before marking a test as failed
* @param {Object} tests Test groups for the project (Required)
* @param {Number} testTimeout Timeout after which a test will be fetched again
*/
'use strict';
var config = {
licenseKey: process.env.CKEDITOR_LICENSE_KEY,
applications: {
ckeditor: {
path: '.',
files: [
'ckeditor.js'
]
}
},
framework: 'yui',
// secure: true,
privateKey: 'tests/_benderjs/ssl/key.pem',
certificate: 'tests/_benderjs/ssl/cert.pem',
coverage: {
paths: [
'adapters/**/*',
'core/**/*',
'dev/**/*',
'lang/**/*',
'plugins/**/*',
'samples/**/*',
'*.js'
],
options: {
checkTrackerVar: true
}
},
plugins: [
'benderjs-coverage',
'benderjs-yui',
'benderjs-sinon',
'benderjs-jquery',
'tests/_benderjs/ckeditor',
'benderjs-yui-beautified'
],
tests: {
'Adapters': {
applications: [ 'ckeditor' ],
basePath: 'tests/',
paths: [
'adapters/**',
'!**/_*/**'
],
// The first officially supported version (1.7.0)
// Latest of the old API (1.8.3)
// Latest of the 1.* branch
// Latest of the 2.* branch
// Latest of the 3.* branch
// Latest of the 3.*.slim branch
jQuery: [
'1.7.0',
'1.8.3',
'1.12.4',
'2.2.4',
'3.6.0',
'3.6.0.slim'
]
},
'Core': {
applications: [ 'ckeditor' ],
basePath: 'tests/',
paths: [
'core/**',
'!**/_*/**'
]
},
'Plugins': {
applications: [ 'ckeditor' ],
basePath: 'tests/',
paths: [
'plugins/**',
'!**/_*/**'
]
},
'External Plugins': {
applications: [ 'ckeditor' ],
basePath: 'plugins/',
paths: [
'*/tests/**',
'!**/_*/**'
]
},
'Tickets': {
applications: [ 'ckeditor' ],
basePath: 'tests/',
paths: [
'tickets/**',
'!**/_*/**'
]
},
'Utils': {
applications: [ 'ckeditor' ],
basePath: 'tests/',
paths: [
'utils/**',
'!**/_*/**'
]
},
'Security': {
applications: [ 'ckeditor' ],
basePath: 'tests/',
paths: [
'security/**',
'!**/_*/**'
]
}
},
'yui-beautified': {
indent_with_tabs: true,
wrap_line_length: 0,
// All tags should be reformatted.
unformatted: 'none',
indent_inner_html: true,
preserve_newlines: true,
max_preserve_newlines: 0,
indent_handlebars: false,
end_with_newline: true,
extra_liners: 'head, body, div, p, /html'
},
mathJaxLibPath: 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/MathJax.js?config=TeX-AMS_HTML'
};
module.exports = config;