The "rake test" ignores the exception message. This pull request displays not only task name but also the exception message.
Errors running test:units, test:functionals!
This pull request:
Errors running test:units! Access denied for user ''@'localhost' to database...
Errors running test:functionals! Command failed with status...
Make "rake test" display not only task name but also exception message.
Tks for the pull request, I like it. Do you think you could add a test to this new format? We already have some here:
Add test to rake test for error messages
Add test. I can't find good way to test the abort message so I change to puts.
Thanks. About capturing stderr, wouldn't using capture(:stderr) work? It is defined in this file (that probably should be required as well):
It seems the abort method writes to STDERR directly, not $stderr, so it will capture nothing.
STDERR only support reopen to change the os's file descriptor and does not accept StringIO.new :/
Fair enough. merged, thanks!