Unit tests in D

bearophile bearophileHUGS at lycos.com
Fri May 7 05:16:43 PDT 2010


Lutger:
> I don't know. This is how you can unittest a single module:
> rdmd --main -unittest test.d
> it just links in a predefined .d file with a main() routine, that's all.

I have done some tests, but I am not able to use it well, or there are some bugs, I don't know.
But even if it works, I don't know if that can solve the problem at hand, because modules call each other, and I don't know if that command compiles just one module with -unittest.

Bye and sorry,
bearophile


More information about the Digitalmars-d mailing list