]>
git.proxmox.com Git - mirror_novnc.git/blob - karma.conf.js
1ea17475a92c214c5a1c6e1f1f6c11ba877cf4e0
3 // The Safari launcher is broken, so construct our own
4 function SafariBrowser(id
, baseBrowserDecorator
, args
) {
5 baseBrowserDecorator(this);
7 this._start = function(url
) {
8 this._execCommand('/usr/bin/open', ['-W', '-n', '-a', 'Safari', url
]);
12 SafariBrowser
.prototype = {
16 module
.exports
= (config
) => {
19 if (process
.env
.TEST_BROWSER_NAME
) {
20 browsers
= process
.env
.TEST_BROWSER_NAME
.split(',');
25 // base path that will be used to resolve all patterns (eg. files, exclude)
29 // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
30 frameworks
: ['mocha', 'sinon-chai'],
32 // list of files / patterns to load in the browser (loaded in order)
34 { pattern
: 'app/localization.js', included
: false, type
: 'module' },
35 { pattern
: 'app/webutil.js', included
: false, type
: 'module' },
36 { pattern
: 'core/**/*.js', included
: false, type
: 'module' },
37 { pattern
: 'vendor/pako/**/*.js', included
: false, type
: 'module' },
38 { pattern
: 'tests/test.*.js', type
: 'module' },
39 { pattern
: 'tests/fake.*.js', included
: false, type
: 'module' },
40 { pattern
: 'tests/assertions.js', type
: 'module' },
45 // replace Karma debug page with mocha display
51 // list of files to exclude
57 '@chiragrupani/karma-chromium-edge-launcher',
58 { 'launcher:Safari': [ 'type', SafariBrowser
] },
61 // start these browsers
62 // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
65 // test results reporter to use
66 // possible values: 'dots', 'progress'
67 // available reporters: https://npmjs.org/browse/keyword/karma-reporter
72 // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
73 logLevel
: config
.LOG_INFO
,
76 // enable / disable watching file and executing tests whenever any file changes
79 // Continuous Integration mode
80 // if true, Karma captures browsers, runs the tests and exits