On Wednesday, 7 September 2016 at 16:46:18 UTC, Johannes Loher wrote:
Is it possible to forward the build type to the dependencies of a dub project? For example, if I build my project with

Hello,

I have the exact same problem with this exact library, dunit. I was wondering why, running dunit own tests, I had the replacement test runner in place, but not when having it as a dependency to a separate application.

After some tests, and being rather new to the D world, I understand that dunit as a library dependency will be linked (or compiled, if local) by dub without "-unittest", even if my application is compiled with --build=unittest (or by dub test).

I changed dunit configuration to force it to compile in a unittest version, and then it works, but dub then yells at me that I should not do this, and that it would take care of these kind of flags... when it obsiously does not.

So I have two questions:

- how is dunit supposed to be linked to a dub described application? - why is the test runner in the shared this() compiled only in version(unittest)?

Reply via email to