How to iterate through all modules for use with the new getUnitTests trait?

Jacob Carlborg doob at me.com
Thu Nov 7 07:03:40 PST 2013


On 2013-11-07 13:22, Dicebot wrote:

> I don't see this much an issue as expect good testing framework to be
> coupled with a build system anyway. Also in really _lot_ of programs
> simply adding mixin to your `app.d` / `main.d` is enough as everything
> else is transitively imported from there.

That doesn't work with libraries. You can have a library consisting of 
two separate files that doesn't import each other.

I also prefer to put my tests in its own files, in a separate directory. 
They are not imported by any other file.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list