Is it possible to forward the build type to the dependencies of a dub project? For example, if I build my project with
dub build -b unittest is it possible to make dub build the dependencies of my project also with the unittest build type? Even better would be a way to specify for which dependencies this should happen. This would be useful for using dunit (http://code.dlang.org/packages/dunit). When built with the unittest build type, it replaces the default unittest handler to give nicer output about which unittests failed and why etc. If I simply add dunit as a dependency to my project and build my project as described above, dunit is not built with the unittest build type and thus the unittest handler is not replaced and I got the usual assertion error output for failing unittests. I tried removing the version(unittest) from the part of dunit, which replaces the handler, but it always outputs some text, even if no unittests are being run (if we don't compile with -unittest). Of course I do not want this ouput when not testing and especially not in release code...