-
Notifications
You must be signed in to change notification settings - Fork 2
/
karma.conf.js
38 lines (36 loc) · 1.1 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
module.exports = function( config ) {
config.set({
frameworks: ['jasmine'],
browsers: ['PhantomJS'],
colors: true,
// Which plugins to enable.
reporters: ['spec', 'coverage'],
files: [
'https://code.jquery.com/jquery-1.12.4.min.js',
'https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js',
'tests/test-helpers.js',
'assets/js/bgseo/boldgrid-seo-util.js',
'assets/js/bgseo/boldgrid-seo-title.js',
'assets/js/bgseo/boldgrid-seo-description.js',
'assets/js/bgseo/boldgrid-seo-robots.js',
'assets/js/bgseo/boldgrid-seo-tooltips.js',
'assets/js/bgseo/boldgrid-seo-keywords.js',
'assets/js/bgseo/boldgrid-seo-init.js',
'tests/bgseo/*.js'
],
preprocessors: {
'assets/js/bgseo/*.js': [ 'coverage' ],
'assets/js/control/*.js': [ 'coverage' ]
},
coverageReporter: {
type: 'html',
dir: 'coverage/',
reporters: [
// Reporters not supporting the `file` property.
{ type: 'html', subdir: 'report-html' },
{ type: 'lcovonly', subdir: '.', file: 'report-lcovonly.txt' },
{ type: 'lcov', subdir: 'report-lcov' }
]
}
});
};