Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

Commit

Permalink
feat(test): add coverage info
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasduteil committed May 15, 2014
1 parent 1ee4bb6 commit beb11ef
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ node_modules
bower_components
dist
out
coverage
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

"karma": "^0",
"karma-jasmine": "^0.2",
"karma-coverage": "^0",
"karma-firefox-launcher": "^0",
"karma-chrome-launcher": "^0",
"karma-phantomjs-launcher": "^0",
Expand Down
10 changes: 9 additions & 1 deletion test/karma-jqlite.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,16 @@ module.exports = function (config) {

// test results reporter to use
// possible values: 'dots', 'progress', 'junit', 'growl', 'coverage'
reporters: ['dots'],
reporters: ['dots', 'coverage'],

preprocessors: {
'src/*.js': ['coverage']
},

coverageReporter: {
type : 'html',
dir : 'coverage/jqlite/'
},

// web server port
port: 9876,
Expand Down
11 changes: 10 additions & 1 deletion test/karma-jquery.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,16 @@ module.exports = function (config) {

// test results reporter to use
// possible values: 'dots', 'progress', 'junit', 'growl', 'coverage'
reporters: ['dots'],
reporters: ['dots', 'coverage'],

preprocessors: {
'src/*.js': ['coverage']
},

coverageReporter: {
type : 'html',
dir : 'coverage/jquery/'
},


// web server port
Expand Down

0 comments on commit beb11ef

Please sign in to comment.