Capture test standard out and error and log it

This commit is contained in:
Kevin Sawicki
2013-06-21 13:35:19 -07:00
parent 2a7f03761d
commit 4eac57c31c

View File

@@ -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'])