加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
bender.js 4.20 KB
一键复制 编辑 原始数据 按行查看 历史
Karol Dawidziuk 提交于 2023-08-28 08:52 . Add license key to CI tests
/* 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;
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化