-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathkarma.conf.js
42 lines (42 loc) · 1.31 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
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', 'requirejs'],
files: [
'spec/test-main.js',
{pattern: 'lib/**/*.js', included: false},
{pattern: 'spec/jasmine/data-helpers.js', included: true},
{pattern: 'spec/jasmine/image-matchers.js', included: false},
{pattern: 'spec/*-spec.js', included: false},
{pattern: 'spec/*/**/*.+(js|gv|xdot)', included: false},
{pattern: 'spec/img/*.png', included: false},
{pattern: 'src/**/*.js', included: false},
{pattern: 'parser/*.js', included: false}
],
exclude: [],
preprocessors: {
'src/js/*.js': ['coverage']
},
reporters: ['jasmine-diff', 'progress', 'coverage', 'html'],
coverageReporter: {
type: 'lcovonly',
dir: 'karma',
subdir: '.'
},
htmlReporter: {
outputDir: 'karma',
templatePath: 'spec/karma/html-reporter-template.html',
namedFiles: true,
reportName: 'report'
},
port: 9876,
browserNoActivityTimeout: 60000,
colors: true,
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: config.LOG_INFO,
//autoWatch: true,
//browsers: ['PhantomJS'],
browsers: ['Firefox'],
singleRun: true
});
};