Why think unit tests should be in their own source code hierarchy instead of side-by-side

Atila Neves atila.neves at gmail.com
Mon Mar 26 13:26:18 UTC 2018


On Friday, 23 March 2018 at 14:54:57 UTC, Steven Schveighoffer 
wrote:
> On 3/22/18 6:59 AM, Atila Neves wrote:
>> Blog post:
>> 
>> https://atilanevesoncode.wordpress.com/
>> 
>> Atila
>
> It's simple. Unittests in imported modules should not be 
> visible. They should be compiled as if -unittest was not passed.
>
> Even Walter and Andrei are supportive: 
> https://github.com/dlang/dmd/pull/6375#issuecomment-373487247
>
> -Steve

That would completely break __traits(getUnitTests).

Atila


More information about the Digitalmars-d-announce mailing list