dmd -unittest=<pattern> (same syntax as -i)

Jonathan Marler johnnymarler at gmail.com
Thu Mar 15 21:08:58 UTC 2018


On Thursday, 15 March 2018 at 12:14:12 UTC, Jacob Carlborg wrote:
> On Thursday, 15 March 2018 at 05:22:45 UTC, Seb wrote:
>
>> Hmm how would this solve the StdUnittest use case? I.e. that 
>> templated phobos unittests and private unittest symbols are 
>> compiled into the users unittests?
>>
>> See also:
>>
>> https://github.com/dlang/phobos/pull/6202
>> https://github.com/dlang/phobos/pull/6159
>
> I would hope this would be solvable without the having the user 
> do something, like `-unittest=<pattern>`.
>
> --
> /Jacob Carlborg

We could do the same thing for -unittest that we did with -i, 
which is to implicitly add:

-unittest=-std -unittest=-core -unittest=-etc -unittest=-obj



More information about the Digitalmars-d mailing list