www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - unittests all in one time

reply "Jan Hanselaer" <jan.hanselaer gmail.com> writes:
Hi

When looking around how unittesting works I encountered the problem that the 
execution of the tests stops from the moment one assert  fails.
I've seen proposals to make them run all and give a list of all the failing 
tests.
What I was wondering is if there's something like that planned to 
incorporate into the language itself?

D is the first language I'm using unittests in just because it's very handy 
with the testcode nearby the source code you're testing. But it would be 
much easier if all the tests are run in one time.

Greetings
Jan 
May 19 2007
next sibling parent Daniel919 <Daniel919 web.de> writes:
Hi, I never used it so far, but you might check out
UnittestWalker from Thomas Kühne: http://flectioned.kuehne.cn/#unittest

 What I was wondering is if there's something like that planned to
 incorporate into the language itself?

May 19 2007
prev sibling parent Sean Kelly <sean f4.ca> writes:
Jan Hanselaer wrote:
 Hi
 
 When looking around how unittesting works I encountered the problem that the 
 execution of the tests stops from the moment one assert  fails.
 I've seen proposals to make them run all and give a list of all the failing 
 tests.
 What I was wondering is if there's something like that planned to 
 incorporate into the language itself?

I just added a feature to Tango that allows this behavior. I'm not sure if that qualifies, but I thought it worth mentioning. Sean
May 24 2007