Jacob Carlborg wrote: > On 2012-09-22 19:43, Jens Mueller wrote: > > >What does it mean to make no distinction in RSpec? > >Both should be reported. In D you just see either an AssertError or > >SomeException. > > Test-unit would report something like this: > > 5 tests, 2 failures, 1 error > > Failures would be asserts that triggered, errors would be thrown exceptions. > > Rspec on the other hand would report: > > 5 examples, 3 failures > > It doesn't care if a failure is due to a thrown exception or a > failed assert.
I see. Thanks for giving this example. > Both of these also show a form of stack trace if an exception has > been thrown. How is the stack trace provided? Do you get a stack trace for each failure/error? Because that may clutter up the output. Maybe they stop at a predefined stack trace length. Jens