listing multiple unit test failures

Christopher Wright dhasenan at gmail.com
Wed Mar 12 05:54:33 PDT 2008


Robert Fraser wrote:
> Not to knock on Mr. Wright's solution, which is probably excellent and 
> more directly addressable to the problem at hand, but I'm working on a 
> solution (designed to use IPC to be used from other applications, etc.) 
> that does just this and a lot more. Check:
> http://www.dsource.org/projects/descent/browser/trunk/descent.unittest/flute/src/org/dsource/descent/unittests/flute.d 
> 
> 
> And the docs at:
> http://svn.dsource.org/projects/descent/trunk/descent.unittest/flute/doc/flute.html 
> 

Flute seems like a general solution that can easily be adapted to DUnit, 
and that support would increase the popularity of DUnit. But can I use 
Flute today?

Flute plus standard D unittests will be a smaller commitment than DUnit, 
and will require somewhat less from programmers. But there's value in 
requiring organization and separation for your tests, I think. For one, 
it's easier to abstract out shared setup code, and be certain that that 
won't be included in your release builds.

Your trick for naming unittests is also scary. It works, though, I'll 
give it that. Against all odds, and without having to run any of the tests.


More information about the Digitalmars-d-learn mailing list