Skip to content

Commit 0e1b16b

Browse files
committed
Added coverage report
1 parent 8ee1a77 commit 0e1b16b

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
.idea
22
bower_components/
33
node_modules/
4+
5+
coverage/

karma.conf.js

+10-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
// karma.conf.js
2-
module.exports = function (config) {
2+
module.exports = function(config) {
33
config.set({
44
frameworks: ['jasmine'],
55
browsers: ['Chrome'],
66
autoWatch: true,
77
singleRun: false,
8-
98
timeout: 120000,
109
browserNoActivityTimeout: 120000,
11-
1210
files: [
1311
'https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js',
1412
'https://code.jquery.com/jquery-2.1.4.min.js',
@@ -17,7 +15,14 @@ module.exports = function (config) {
1715
'src/**.js',
1816
'spec/**.js',
1917
'spec/factories/**.js'
20-
]
18+
],
19+
preprocessors: {
20+
'src/*.js': 'coverage'
21+
},
22+
reporters: ['progress', 'coverage'],
23+
coverageReporter: {
24+
type: 'lcovonly',
25+
dir: 'coverage'
26+
}
2127
});
2228
};
23-

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
"version": "0.0.1",
44
"description": "Automated impulse response analysis (AIRA), an algorithm and platform to automatically analyze intensive individual longitudinal data by means of impulse response functions (IRF) and simulation",
55
"main": "index.html",
6-
"dependencies": {
7-
},
6+
"dependencies": {},
87
"devDependencies": {
98
"jasmine-core": "^2.3.4",
109
"karma": "^0.12.37",
1110
"karma-chrome-launcher": "^0.2.0",
11+
"karma-coverage": "^1.1.1",
1212
"karma-htmlfile-reporter": "^0.2.1",
1313
"karma-jasmine": "^0.3.6"
1414
},

0 commit comments

Comments
 (0)