Extending unittests [proposal] [Proof Of Concept]

Jacob Carlborg doob at me.com
Sun Sep 23 07:20:14 PDT 2012


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.

Both of these also show a form of stack trace if an exception has been 
thrown.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list