Skip to content

Commit

Permalink
Add coverage for QUnit via Istanbul
Browse files Browse the repository at this point in the history
  • Loading branch information
mduvall committed Sep 2, 2013
1 parent 621edc3 commit 6a76810
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ _SpecRunner.html
bin/coverage
node_modules/
.DS_Store
report/
18 changes: 17 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
module.exports = function(grunt) {

grunt.initConfig({});
grunt.initConfig({
qunit: {
options: {
"--web-security": "no",
coverage: {
src: ["js/grande.js"],
instrumentedFiles: "temp/",
htmlReport: "report/coverage",
coberturaReport: "report/",
linesThresholdPct: 85
}
},
all: ["test/**.html"]
}
});

grunt.loadNpmTasks("grunt-qunit-istanbul");
};

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"istanbul": "~0.1.10",
"sinon": "*",
"grunt": "~0.4.1",
"qunitjs": "*"
"qunitjs": "*",
"grunt-qunit-istanbul": "*"
},
"keywords": [
"ui",
Expand Down

0 comments on commit 6a76810

Please sign in to comment.