Skip to content

Commit

Permalink
Bring back failure reports when running grunt run-specs
Browse files Browse the repository at this point in the history
Log output to stderr as we did before, so that grunt can, in turn, output it to
console when specs fail.

Welcome back build failures! 🎉

/cc: @nathansobo @maxbrunsfeld
  • Loading branch information
as-cii committed Oct 15, 2015
1 parent edddb65 commit c38cd48
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion spec/jasmine-test-runner.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ buildTerminalReporter = (logFile, resolveWithExitCode) ->
if logStream?
fs.writeSync(logStream, str)
else
ipc.send 'write-to-stdout', str
ipc.send 'write-to-stderr', str

{TerminalReporter} = require 'jasmine-tagged'
new TerminalReporter
Expand Down
3 changes: 3 additions & 0 deletions src/browser/atom-application.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,9 @@ class AtomApplication
ipc.on 'write-to-stdout', (event, output) ->
process.stdout.write(output)

ipc.on 'write-to-stderr', (event, output) ->
process.stderr.write(output)

# Public: Executes the given command.
#
# If it isn't handled globally, delegate to the currently focused window.
Expand Down

0 comments on commit c38cd48

Please sign in to comment.