-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathkarma.conf.js
More file actions
59 lines (55 loc) · 1.57 KB
/
Copy pathkarma.conf.js
File metadata and controls
59 lines (55 loc) · 1.57 KB
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
var res = require('./karl/views/static/resources.json');
var _ = require('lodash');
function staticPaths(items) {
return _.map(items, function(name) {
return res.staticPrefix + name;
});
}
function jsBundle(name) {
return staticPaths(res.js[name]);
}
module.exports = function(config) {
config.set({
// base path is set back to project root
basePath: '.',
files: Array.prototype.concat(
jsBundle('karl-ui'),
jsBundle('karl-multifileupload'),
jsBundle('tinymce-3.5.2.karl'),
jsBundle('karl-wikitoc'),
// (we do not need to load tinymce-popup-utils here,
// as it only gets included from tinymce popup pages)
jsBundle('karl-custom'),
[
'frontend-test/unit/helper/qunit-asserts.js',
'node_modules/lodash/lodash.js',
'karl/views/static/**/*-spec.js',
'karl/views/static/**/*-fixture.html',
]
),
browsers: ['PhantomJS'],
preprocessors: {
'**/*.html': ['html2js'],
'**/*.json': ['html2js'],
},
// Use only ports here that are forwarded by Sauce Connect tunnel.
// Check usable ports on http://saucelabs.com/docs/connect.
port: 5050,
frameworks: ['mocha', 'detectBrowsers', 'chai'],
reporters: ['progress', 'junit'],
junitReporter: {
// this path is relative from the basePath
outputFile: 'log/unit-test-results.xml',
suite: 'frontend-unit'
},
autoWatch: false,
singleRun: true,
colors: true,
// logLevel: config.LOG_DEBUG,
detectBrowsers: {
enabled: false,
},
customLaunchers: {
},
});
};