On Wednesday, 25 September 2013 at 06:45:12 UTC, Jacob Carlborg wrote:
It's possible to implement you're own unit test handler. See:

https://github.com/D-Programming-Language/druntime/blob/master/src/core/runtime.d#L290

It's also possibly to set the assert handler:

https://github.com/D-Programming-Language/druntime/blob/master/src/core/exception.d#L368

But you most likely want to throw some kind of exception anyway. Because if an assertion is triggered in a unit test block you most likely want to end that unit test block, immediately.

That looks interesting but the unittester handler seems to run instead of the unittest blocks and the assert handler property is private.

Reply via email to