- 29 5月, 2012 1 次提交
-
-
由 James Mead 提交于
Neither Test::Unit nor MiniTest rescue exceptions like Interrupt or NoMemoryError, but ActiveSupport::Testing::SetupAndTeardown#run which overrides MiniTest::Unit::TestCase#run rescues them. Rescuing an Interrupt exception is annoying, because it means when you are running a lot of tests e.g. when running one of the rake test tasks, you cannot break out using ctrl-C. Rescuing exceptions like NoMemoryError is foolish, because the most sensible thing to happen is for the process to terminate as soon as possible. This solution probably needs some finessing e.g. I'm not clear whether the assumption is that only MiniTest is supported. Also early versions of MiniTest did not have this behaviour. However, hopefully it's a start. Integrating with Test::Unit & MiniTest has always been a pain. It would be great if both of them provided sensible extension points for the kind of things that both Rails and Mocha want to do.
-
- 07 1月, 2012 2 次提交
-
-
由 Aaron Patterson 提交于
-
由 Rafael Mendonça França 提交于
-
- 02 3月, 2011 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 20 1月, 2011 4 次提交
-
-
由 Jamis Buck 提交于
This reverts commit 79380395.
-
由 Jamis Buck 提交于
This reverts commit 79a06225.
-
由 Jamis Buck 提交于
this prevents test state from accumulating, resulting in leaked objects and slow tests due to overactive GC.
-
由 Jamis Buck 提交于
-
- 05 10月, 2010 2 次提交
-
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-