How can one reliably run unittests

Walter Bright newshound2 at digitalmars.com
Wed Aug 25 21:00:57 UTC 2021


On 8/24/2021 5:39 AM, Atila Neves wrote:
> The way I'd like it to work personally would be to CTFE unit tests in a module 
> and have them run whenever I save the file. No linker, no main function, just that.

Interestingly, a lot of the tests for ImportC are in the form of CTFE and 
_Static_assert(). It works so well, I plan on using that method wherever I can.


More information about the Digitalmars-d mailing list