Why do failed contracts don't dump stack backtrace in unittests?
snarwin at gmail.com
Sun Sep 4 16:35:00 UTC 2022
On Sunday, 4 September 2022 at 14:14:55 UTC, Ali Çehreli wrote:
> The program output is different whether an Error is thrown from
> main or from the unittest block:
Because the default test runner catches the Error, and doesn't
print the stack trace:
There's even a comment about it:
// TODO: omit stack trace only if assert was thrown
// directly by the unittest.
More information about the Digitalmars-d-learn