We already have --DRT-run-unittests. It's -unittest -main. Simple!

Jonathan Marler johnnymarler at gmail.com
Sun May 19 17:42:58 UTC 2019


On Sunday, 19 May 2019 at 17:28:31 UTC, Adam D. Ruppe wrote:
> On Sunday, 19 May 2019 at 13:31:12 UTC, Andrei Alexandrescu 
> wrote:
>> But it makes sense to allow (and ignore) main if -unittest is 
>> also provided. Essentially -unittest -main means "build for 
>> unittesting and a no-op main".
>
> Not bad.
>
> My only concern here is build time, if we are running the 
> compiler twice for a successful build (this is why many of us 
> avoided rdmd), but the background parallel idea could solve 
> that.
>
> I say let's try it!

I solved that with rund...have you tried it?

https://github.com/dragon-lang/rund



More information about the Digitalmars-d mailing list