diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2016-09-19 16:05:35 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2016-09-19 16:07:47 +0300 |
commit | 9e9ed7801a2f9aea4c24cfb12a0c3d4112f03606 (patch) | |
tree | 39cc724b17a3c5dc80fc09db5bf9746bf9bc8e98 /karma.conf.js | |
parent | c38be33fc89e4d10f8102a1eeb6bbb207f70cc29 (diff) |
print text summary of js test coverage
Diffstat (limited to 'karma.conf.js')
-rw-r--r-- | karma.conf.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/karma.conf.js b/karma.conf.js index 2aaf92c3a..dfca174e5 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -10,15 +10,10 @@ module.exports = function(config) { // list of files / patterns to load in the browser files: [ 'js/vendor/jquery/dist/jquery.js', - {pattern: 'js/*/*.js', included: false}, + {pattern: 'js/**/*.js', included: false}, {pattern: 'js/*.js', included: false}, {pattern: 'js/templates/*.html', included: false}, - {pattern: 'js/vendor/backbone/backbone.js', included: false}, - {pattern: 'js/vendor/backbone.marionette/lib/backbone.marionette.js', included: false}, - {pattern: 'js/vendor/backbone.radio/build/backbone.radio.js', included: false}, - {pattern: 'js/vendor/handlebars/handlebars.js', included: false}, - {pattern: 'js/vendor/text/text.js', included: false}, - {pattern: 'js/vendor/underscore/underscore.js', included: false}, + {pattern: 'js/vendor/**/*.js', included: false}, {pattern: 'js/tests/*.js', included: false}, 'js/tests/test-main.js' ], @@ -31,11 +26,16 @@ module.exports = function(config) { // preprocess matching files before serving them to the browser // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor preprocessors: { + 'js/**[!vendor]/*[!spec].js': ['coverage'] }, // test results reporter to use // possible values: 'dots', 'progress' // available reporters: https://npmjs.org/browse/keyword/karma-reporter - reporters: ['progress'], + reporters: ['progress', 'coverage'], + coverageReporter: { + type: 'text-summary', + dir: 'coverage/' + }, // web server port port: 9876, // enable / disable colors in the output (reporters and logs) |