unittest "name" {}

ProtectAndHide ProtectAndHide at gmail.com
Fri Feb 10 21:21:30 UTC 2023


On Friday, 10 February 2023 at 21:15:23 UTC, ProtectAndHide wrote:
> On Friday, 10 February 2023 at 21:08:38 UTC, Dennis wrote:
>>
>> ...
>> Question to the community: do you name tests, and do you like 
>> the idea?
>
> Nice idea.
>
> I'd prefer it was consistent with the import statement though:
>
> unittest : mytest
> {
>
> }

Also maybe a way to tell the compiler what unittest to run 
perhaps (i.e. passing in the name of the unittest (all unittests 
being the default).

unittest : myQuicktest // dmd -unittest:myQuicktest
{

}

unittest : myLongtest // dmd -unittest:myLongtest
{

}


More information about the Digitalmars-d mailing list