grunt-blanket-qunit
Advanced tools
Comparing version 0.1.2 to 0.1.3
{ | ||
"name": "grunt-blanket-qunit", | ||
"description": "Headless Blanket.js code coverage and QUnit testing via PhantomJS", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"homepage": "https://github.com/ModelN/grunt-blanket-qunit", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -134,2 +134,3 @@ // grunt-blanket-qunit | ||
status.blanketTotal++; | ||
if (pass) { | ||
@@ -157,3 +158,3 @@ status.blanketPass++; | ||
logFailedAssertions(); | ||
} | ||
} | ||
} | ||
@@ -204,3 +205,3 @@ }); | ||
// Reset status. | ||
status = {failed: 0, passed: 0, total: 0, duration: 0, blanketPass: 0, blanketFail: 0}; | ||
status = {failed: 0, passed: 0, total: 0, duration: 0, blanketTotal: 0, blanketPass: 0, blanketFail: 0}; | ||
@@ -242,6 +243,5 @@ coverageThreshold = options.threshold; | ||
var thresholdMsg = "(" + coverageThreshold + "% minimum)"; | ||
if (status.blanketFail > 0) { | ||
// grunt.log.write(status.blanketPass + " files passed coverage\n"); | ||
var failMsg = (status.blanketFail + " files failed coverage " + thresholdMsg); | ||
var failMsg = (status.blanketFail + "/" + status.blanketTotal + " files failed coverage " + thresholdMsg); | ||
grunt.log.write(failMsg.red); | ||
@@ -248,0 +248,0 @@ grunt.log.writeln(); |
21043