Simple bolt-on unittest improvement

Nick Sabalausky a at a.a
Fri Sep 11 21:05:27 PDT 2009


"Justin Johansson" <procode at adam-dott-com.au> wrote in message 
news:h8edsq$b93$1 at digitalmars.com...
>
> The idea is to keep working within D's built in unit test facility; just 
> don't use assert statements in current fashion as if one fails then whole 
> test stops running.

I found that to be an enormous PITA too...

> I can't imagine that my approach is anything new.  What do other people do 
> to achieve similar continuous unit testing goal?
>

Usage:
http://www.dsource.org/projects/semitwist/browser/trunk/src/semitwist/apps/tests/deferAssertTest/main.d

Implementation (incl. some extra stuff that usage app doesn't actually use):
http://www.dsource.org/projects/semitwist/browser/trunk/src/semitwist/util/deferAssert.d





More information about the Digitalmars-d mailing list