On 9/25/2014 10:45 AM, Andrei Alexandrescu wrote:
On 9/25/14, 10:26 AM, Atila Neves wrote:
On Thursday, 25 September 2014 at 13:50:10 UTC, Jacob Carlborg wrote:
On 25/09/14 09:38, Atila Neves wrote:

Here's one: having to manually generate the custom main file for
unittest builds. There's no current way (or at least there wasn't when I
brought it up in the dub forum) to tell it to autogenerate a D file from
a dub package and list it as a dependency of the unittest build.

Hmm, I haven't used Dub to run unit tests. Although, DMD has a "-main"
flag that adds an empty main function.

I don't want an empty main function. I want the main function and the
file it's in to be generated by the build system.

Why would be the focus on the mechanism instead of the needed outcome? -- Andrei


I've found:

   -main -unittest -cov

to be terribly convenient when developing modules. Should have added -main much sooner.

Reply via email to