How can one reliably run unittests

Walter Bright newshound2 at digitalmars.com
Sun Sep 5 21:00:15 UTC 2021


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.


More information about the Digitalmars-d mailing list