How can one reliably run unittests

deadalnix deadalnix at gmail.com
Sun Sep 5 22:00:58 UTC 2021


On Sunday, 5 September 2021 at 21:00:15 UTC, Walter Bright wrote:
> On 8/31/2021 4:04 AM, deadalnix wrote:
>> No, because it'll run the unittests, and the user will see "X 
>> test passed" or something similar when running the executable, 
>> understand that they ran the uni tests and go ahead and run 
>> the executable that has been built without the unitests flag.
>> 
>> If the user doesn't have any unitests in the executable, then 
>> saying "0 test run, 0 passed, 0 failed" is enough to indicated 
>> to the user that this was a unitests build.
>
> The unittest feature doesn't do any of those things unless you 
> code it to.

It already output a very similar message: "15 modules passed 
unittests"

The specifics of the message do not matter here.


More information about the Digitalmars-d mailing list