Skip to content

Commit

Permalink
Merge pull request #32 from jonnyreeves/patch-1
Browse files Browse the repository at this point in the history
Provide `options.console` in task config
  • Loading branch information
asciidisco committed Dec 2, 2014
2 parents b6ec2d1 + 0c5888d commit 8ccbbf4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tasks/qunit.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@ module.exports = function(grunt) {


// Pass-through console.log statements.
phantomjs.on('console', console.log.bind(console));
if(options.console) {
phantomjs.on('console', console.log.bind(console));
}

grunt.registerMultiTask('qunit', 'Run QUnit unit tests in a headless PhantomJS instance.', function() {
// Merge task-specific and/or target-specific options with these defaults.
Expand All @@ -177,6 +179,8 @@ module.exports = function(grunt) {
// Explicit non-file URLs to test.
urls: [],
force: false,
// Connect phantomjs console output to grunt output
console: true,
// Explicitly define all coverage options (as empty)
coverage: {
src: [],
Expand Down

0 comments on commit 8ccbbf4

Please sign in to comment.