Suggestion (ping Walter): Improve unit testing.

Deewiant deewiant.doesnotlike.spam at gmail.com
Sat Apr 21 04:50:57 PDT 2007


Derek Parnell wrote:
> On Sat, 21 Apr 2007 01:43:25 -0700, David B. Held wrote:
> 
>> * Consistent output
>>
>> This means that someone who has never seen your tests before can tell 
>> whether they passed or failed.  The problem with the 
>> 'no-gnus-is-good-gnus' principle is that it makes it difficult to tell 
>> the difference between "the tests all passed" and "the tests didn't 
>> run". 
> 
> I find myself often writing a unittest that will deliberately and
> definitely fail, just to make sure I'm invoking any of the unittests.
> 

Ditto. Whenever I add a new test, I test the test by adding "assert (false);"
after it to make sure it gets run.

-- 
Remove ".doesnotlike.spam" from the mail address.



More information about the Digitalmars-d mailing list