Skip to content

Commit

Permalink
adding instanbul
Browse files Browse the repository at this point in the history
  • Loading branch information
Squeakrats committed Mar 1, 2016
1 parent 13bccba commit 07da43a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ tmp/
bower_components/
build/
site/
coverage/
15 changes: 11 additions & 4 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module.exports = function(config) {
// preprocess matching files before serving them to the browser
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
preprocessors: {
'cruft/**/*.js': ['traceur'],
'cruft/**/*.js': ['traceur', 'coverage'],
'tests/**/*.test.js': ['traceur']
},

Expand All @@ -43,10 +43,16 @@ module.exports = function(config) {
}
},

coverageReporter: {
dir: 'coverage',
subdir: '.'
// Would output the results into: .'/coverage/'
},

// test results reporter to use
// possible values: 'dots', 'progress'
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
reporters: ['progress'],
reporters: ['progress', 'coverage'],


// web server port
Expand All @@ -68,7 +74,7 @@ module.exports = function(config) {

// start these browsers
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
browsers: ['PhantomJS'],
browsers: ['Chrome'],


// Continuous Integration mode
Expand All @@ -84,7 +90,8 @@ module.exports = function(config) {
'karma-traceur-preprocessor',
'karma-jasmine',
'karma-chrome-launcher',
'karma-phantomjs-launcher'
'karma-phantomjs-launcher',
'karma-coverage'
]
})
}
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@
"jasmine-core": "^2.4.1",
"karma": "^0.13.21",
"karma-browserify": "^5.0.1",
"karma-chrome-launcher": "^0.2.2",
"karma-chrome-launcher": "~0.2.2",
"karma-jasmine": "^0.3.7",
"karma-phantomjs-launcher": "^1.0.0",
"karma-requirejs": "^0.2.5",
"karma-traceur-preprocessor": "^0.4.0",
"phantomjs-prebuilt": "^2.1.4",
"traceur": "0.0.102"
"traceur": "0.0.102",
"karma-coverage": "~0.5.3"
}
}

0 comments on commit 07da43a

Please sign in to comment.