Named unittests

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sun May 19 13:13:21 UTC 2019


On 5/19/19 10:25 AM, Johannes Pfau wrote:
> Am Sat, 18 May 2019 13:55:39 -0400 schrieb Andrei Alexandrescu:
> 
>>
>> Wait, if you build a program with -unittest will it run some/all of
>> phobos' unittests? That would be indeed undesirable!
>>
>> I wonder how often people compile external libraries together with the
>> application within the same command line.
> 
> It runs some of the phobos unittests, those which are in templates
> instantiated in user code:

That is correct, and seems desirable. Instantiations of library 
templated types with user types should be tested during unittesting.



More information about the Digitalmars-d mailing list