Skip to content

Commit

Permalink
Added istanbul code coverage tool.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Wermke committed Jul 3, 2014
1 parent 4f00d89 commit 0608d8d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -2,3 +2,4 @@
bower_components
node_modules
public
reports
16 changes: 14 additions & 2 deletions Gruntfile.js
Expand Up @@ -4,7 +4,9 @@ module.exports = function (grunt) {

var fs = require('fs');

require('load-grunt-tasks')(grunt);
require('load-grunt-tasks')(grunt, {
pattern: ['grunt-*', '!grunt-template-jasmine-istanbul']
});

grunt.initConfig({
shell: {
Expand All @@ -20,7 +22,17 @@ module.exports = function (grunt) {
'bower_components/jquery/dist/jquery.js',
'bower_components/jasmine-jquery/lib/jasmine-jquery.js'
],
specs: 'specs/*.spec.js'
specs: 'specs/*.spec.js',
template : require('grunt-template-jasmine-istanbul'),
templateOptions: {
coverage: 'reports/coverage.json',
report: {
type: 'lcov',
options: {
dir: 'reports/coverage'
}
}
}
}
}
},
Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -30,6 +30,7 @@
"grunt-contrib-watch": "~0.5.3",
"grunt-gh-pages": "^0.9.1",
"grunt-shell": "^0.7.0",
"grunt-template-jasmine-istanbul": "^0.3.0",
"husky": "^0.5.0",
"load-grunt-tasks": "^0.6.0"
},
Expand Down

0 comments on commit 0608d8d

Please sign in to comment.