How can one reliably run unittests

jmh530 john.michael.hall at gmail.com
Wed Aug 25 14:53:05 UTC 2021


On Wednesday, 25 August 2021 at 14:50:04 UTC, Steven 
Schveighoffer wrote:
> On 8/25/21 10:44 AM, jmh530 wrote:
>> On Wednesday, 25 August 2021 at 12:44:54 UTC, Steven 
>> Schveighoffer wrote:
>>> [snip]
>> 
>> Would it be possible to use an external unit testing framework 
>> to get all the tests when compiling with -betterC 
>> automatically without manually listing all the modules?
>> 
>
> betterC does not create ModuleInfo. So I don't think so.
>
> Potentially you could register tests via 
> `pragma(crt_constructor)` calls. It would be messy.
>
> Nothing would be as nice as the way the compiler currently sets 
> up the moduleinfo.
>
> -Steve

Thanks.


More information about the Digitalmars-d mailing list