Unit tests in libraries?

Walter Bright newshound2 at digitalmars.com
Mon Aug 16 10:26:46 PDT 2010


Mike Linford wrote:
> The unit test does not get run when compiled as:
> dmd -lib mylib.d
> dmd main.d mylib.a
> 
> But does get run when compiled as
> dmd main.d mylib.d


You need to compile with -unittest to run them.


More information about the Digitalmars-d mailing list