On Monday, 21 March 2016 at 10:37:31 UTC, ZombineDev wrote:
On Monday, 21 March 2016 at 10:29:36 UTC, Nordlöw wrote:
I want to enable unittests only at the top-level of a module compilation.

If I have a module

    top.d

that imports

    dep1.d
    dep2.d
    ...

which all contain unittests, how do I compile top.d with only the unittests for top.d enabled?

I think the easiest solution is to use http://dlang.org/spec/traits.html#getUnitTests and to run the tests you want manually.

This is quite annoying I feel.

There probably should be an option for the -unittest flag to only compile unittests for the source files I'm passing in, and not any of the tests in the -I import paths.

Reply via email to