Yes. This has been a personal annoyance for many years. Even tried arguing some time back to get it fixed to no avail. Really hoping for better success this time.

On 02/06/2018 08:47 PM, jmh530 wrote:

Would it help to take the approach of mir, i.e. putting version(mir_test) before all the unittests?

That used to be a very common idiom. (And I agree with Jonathan M Davis: it's a STRONG sign the current design needs fixed). But newer versions of dub, intelligently, will only compile the files in the main project with -unittest, which solves the problem...*for dub users*. Unfortunately, this means that the idiom above has become less common and libraries have become less usable for anyone using a build tool *other* than dub. :(

Reply via email to