Program logic bugs vs input/environmental errors

Dicebot via Digitalmars-d digitalmars-d at puremagic.com
Wed Oct 15 07:25:42 PDT 2014


On Wednesday, 15 October 2014 at 07:26:03 UTC, Walter Bright 
wrote:
> On 10/14/2014 11:23 PM, Jacob Carlborg wrote:
>> On 2014-10-15 07:57, Walter Bright wrote:
>>
>>> Why do you need non-fatal unittests?
>>
>> I don't know if this would cause problems with the current 
>> approach. But most
>> unit test frameworks don't NOT stop on the first failure, like 
>> D does. It
>> catches the exception, continues with the next test and in the 
>> end prints a
>> final report.
>
> I understand that, but I don't think that is what Dicebot is 
> looking for. He's looking to recover from unittests, not just 
> continue.

How can one continue without recovering? This will result in any 
kind of environment not being cleaned and false failures of other 
tests that share it.


More information about the Digitalmars-d mailing list