grunt-qunit-istanbul
Advanced tools
Comparing version 0.4.6 to 0.4.7
{ | ||
"name": "grunt-qunit-istanbul", | ||
"description": "Run QUnit unit tests in a headless PhantomJS instance and create coverage reports with istanbul.", | ||
"version": "0.4.6", | ||
"version": "0.4.7", | ||
"homepage": "https://github.com/asciidisco/grunt-qunit-istanbul", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -166,8 +166,2 @@ /* | ||
// Pass-through console.log statements. | ||
if(options.console) { | ||
phantomjs.on('console', console.log.bind(console)); | ||
} | ||
grunt.registerMultiTask('qunit', 'Run QUnit unit tests in a headless PhantomJS instance.', function() { | ||
@@ -191,3 +185,9 @@ // Merge task-specific and/or target-specific options with these defaults. | ||
}); | ||
// Pass-through console.log statements. | ||
if(options.console) { | ||
phantomjs.on('console', console.log.bind(console)); | ||
} | ||
if (options.coverage && options.coverage.disposeCollector) { | ||
@@ -194,0 +194,0 @@ collector.dispose(); |
21967