Permalink
Browse files

Build: Add Istanbul for code coverage reports

Closes #143
  • Loading branch information...
dmethvin committed Feb 4, 2016
1 parent ca716e9 commit 86de1f8d8785c1aae3acf771c5a0c7d1dd42a4d1
Showing with 13 additions and 3 deletions.
  1. +1 −0 .gitignore
  2. +1 −0 .npmignore
  3. +10 −1 Gruntfile.js
  4. +1 −2 package.json
View
@@ -1,4 +1,5 @@
dist
coverage
CDN
.project
.settings
View
@@ -1,4 +1,5 @@
CDN
coverage
.project
.settings
*~
View
@@ -57,6 +57,15 @@ module.exports = function(grunt) {
}
},
qunit: {
options: {
coverage: {
disposeCollector: true,
instrumentedFiles: "temp/",
src: [ "dist/jquery-migrate.js" ],
htmlReport: "coverage/",
linesThresholdPct: 85
}
},
files: [ "test/**/*.html" ]
},
npmcopy: {
@@ -114,7 +123,7 @@ module.exports = function(grunt) {
grunt.loadNpmTasks("grunt-contrib-watch");
grunt.loadNpmTasks("grunt-contrib-jshint");
grunt.loadNpmTasks("grunt-contrib-uglify");
grunt.loadNpmTasks("grunt-contrib-qunit");
grunt.loadNpmTasks("grunt-qunit-istanbul");
grunt.loadNpmTasks("grunt-npmcopy");
// Default task.
View
@@ -22,13 +22,12 @@
"grunt": "~0.4.5",
"grunt-contrib-concat": "0.5.1",
"grunt-contrib-jshint": "0.11.0",
"grunt-contrib-qunit": "0.5.2",
"grunt-contrib-uglify": "0.8.0",
"grunt-contrib-watch": "0.6.1",
"grunt-git-authors": "3.0.0",
"grunt-npmcopy": "0.1.0",
"grunt-qunit-istanbul": "0.6.0",
"jquery": "^2.1.3",
"phantomjs-polyfill": "0.0.1",
"qunitjs": "1.17.1",
"testswarm": "~1.1.0"
},

0 comments on commit 86de1f8

Please sign in to comment.