-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
62 lines (61 loc) · 1.58 KB
/
karma.conf.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
module.exports = function(config) {
config.set({
basePath: '.',
frameworks: ['jasmine', 'requirejs'],
files: ['test/test-main.js', 'test/geoladris-tests.js', 'node_modules/jquery/dist/jquery.min.js', //
{
pattern: 'node_modules/squirejs/**/*.js',
included: false
}, {
pattern: 'node_modules/@geoladris/core/src/message-bus.js',
included: false
}, {
pattern: 'node_modules/moment/min/moment.min.js',
included: false
}, {
pattern: 'node_modules/nouislider/distribute/nouislider.min.js',
included: false
}, {
pattern: 'node_modules/pikaday/pikaday.js',
included: false
}, {
pattern: 'node_modules/pikaday/plugins/pikaday.jquery.js',
included: false
}, {
pattern: 'node_modules/sortablejs/Sortable.min.js',
included: false
}, {
pattern: 'node_modules/typeahead.js/dist/typeahead.jquery.min.js',
included: false
}, {
pattern: 'src/**/*.js',
included: false
}, {
pattern: 'jslib/**/*.js',
included: false
}, {
pattern: 'test/**/*.js',
included: false
}
],
reporters: ['progress', 'junit', 'coverage'],
port: 9876,
browsers: ['PhantomJS'],
plugins: ['karma-jasmine', 'karma-junit-reporter', 'karma-requirejs', 'karma-phantomjs-launcher', 'karma-chrome-launcher', 'karma-coverage'],
singleRun: true,
colors: true,
autoWatch: false,
preprocessors: {
'src/**/*.js': ['coverage']
},
junitReporter: {
outputFile: 'target/reports/junit/TESTS-xunit.xml',
useBrowserName: false
},
coverageReporter: {
type: 'lcov',
dir: 'test',
subdir: 'js-coverage'
}
});
};