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
|
module.exports = function (config) {
config.set({
basePath : '',
autoWatch : true,
frameworks: ['jasmine'],
browsers : ['PhantomJS'],
plugins : [
'karma-spec-reporter',
'karma-phantomjs-launcher',
'karma-jasmine',
'karma-coverage',
'karma-htmlfile-reporter'
],
reporters : ['spec', 'coverage', 'html'],
preprocessors: {
'../src/js/**/*.js': 'coverage'
},
coverageReporter: {
type : 'html',
dir : 'coverage/'
},
htmlReporter: {
outputFile: 'results/unit-tests.html'
}
});
};
|