Should unittests run as logical part of compilation?

Johannes Pfau nospam at example.com
Sat Jan 25 15:13:07 PST 2014


Am Sat, 25 Jan 2014 14:55:30 -0800
schrieb Andrei Alexandrescu <SeeWebsiteForEmail at erdani.org>:

> There's this simple realization that unittests could (should?) be 
> considered an intrinsic part of the build process. In order for an 
> executable to be worth running, it should pass the regular semantic 
> checks and also the unittests, which in a sense are extended semantic 
> checks that fall outside the traditional charter of the compiler.
> 
> [....]
> 
> Andrei

But please keep some way to manually run unittests - otherwise cross
compilers will have lots of fun running unittests ;-)

(IMHO this is the responsibility of a build tool, not of the compiler)


More information about the Digitalmars-d mailing list