From 4eac57c31ca4bbe167d770000dbe0df31e1e6087 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Fri, 21 Jun 2013 13:35:19 -0700 Subject: [PATCH] Capture test standard out and error and log it --- Gruntfile.coffee | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Gruntfile.coffee b/Gruntfile.coffee index 4dfe6467f..096ec6707 100644 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -184,7 +184,10 @@ module.exports = (grunt) -> spawn cmd: 'pkill', args: ['Atom'], -> callback() commands.push (callback) -> atomBinary = path.join(CONTENTS_DIR, 'MacOS', 'Atom') - spawn cmd: atomBinary, args: ['--test', "--resource-path=#{__dirname}"], (error) -> callback(error) + spawn cmd: atomBinary, args: ['--test', "--resource-path=#{__dirname}"], (error, result) -> + process.stderr.write(result.stderr) + process.stdout.write(result.stdout) + callback(error) grunt.util.async.waterfall commands, (error) -> done(error) grunt.registerTask('compile', ['coffee', 'less', 'cson'])