forked from w20-framework/w20
/
karma.conf.js
37 lines (35 loc) · 1.14 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
/*
* Copyright (c) 2013-2016, The SeedStack authors <http://seedstack.org>
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/* global module: false, config: false */
module.exports = function(config) {
'use strict';
config.set({
frameworks: [ 'jasmine', 'requirejs', 'phantomjs-shim' ],
files: [
'test-main.js',
{ pattern: '*.json', included: false },
{ pattern: 'mocks/**/*.json', included: false },
{ pattern: 'specs/**/*.js', included: false },
{ pattern: 'modules/**/*.js*', included: false },
{ pattern: 'bower_components/**/*', included: false }
],
preprocessors: {
'modules/*.js': 'coverage'
},
reporters: ['dots', 'coverage' ],
coverageReporter: {
type: 'lcov',
dir: 'coverage/',
subdir: '.'
},
port: 9876,
colors: true,
logLevel: 'INFO',
browsers: [ 'PhantomJS' ]
});
};