aboutsummaryrefslogtreecommitdiffstats
path: root/railties/CHANGELOG.md
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2015-08-30 12:33:37 +0200
committerKasper Timm Hansen <kaspth@gmail.com>2015-09-28 20:30:03 +0200
commit64a3b09b408400c94fd25f22c2ce791a8d90b5cb (patch)
tree1013b9eca4e937b964209ee8648b37f42d7fc812 /railties/CHANGELOG.md
parent9254d7eb11304fc43609e3f96acfcd730f18b738 (diff)
downloadrails-64a3b09b408400c94fd25f22c2ce791a8d90b5cb.tar.gz
rails-64a3b09b408400c94fd25f22c2ce791a8d90b5cb.tar.bz2
rails-64a3b09b408400c94fd25f22c2ce791a8d90b5cb.zip
Add inline failure reporting to test runner.
Any failures or errors will be reported inline during the run by default. Skipped tests will be reported if run in verbose mode. Any result is output with failure messages and a rerun snippet for that test. Rerun snippets won't be output after a run, unless `--defer-output` is passed.
Diffstat (limited to 'railties/CHANGELOG.md')
-rw-r--r--railties/CHANGELOG.md30
1 files changed, 30 insertions, 0 deletions
diff --git a/railties/CHANGELOG.md b/railties/CHANGELOG.md
index f007d11c72..36ac0951ca 100644
--- a/railties/CHANGELOG.md
+++ b/railties/CHANGELOG.md
@@ -1,3 +1,33 @@
+* Add inline output to `bin/rails test`
+
+ Any failures or errors (and skips if running in verbose mode) are output
+ during a test run:
+
+ ```
+ # Running:
+
+ .....S..........................................F
+
+ This failed
+
+ bin/rails test test/models/bunny_test.rb:14
+
+ .................................E
+
+ ArgumentError: Wups! Bet you didn't expect this!
+ test/models/bunny_test.rb:19:in `block in <class:BunnyTest>'
+
+ bin/rails test test/models/bunny_test.rb:18
+
+ ....................
+
+ Finished in 0.069708s, 1477.6019 runs/s, 1448.9106 assertions/s.
+ ```
+
+ Output can be deferred to after a run with the `--defer-output` option.
+
+ *Kasper Timm Hansen*
+
* Fix displaying mailer previews on non local requests when config
`action_mailer.show_previews` is set