<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Apr 1, 2015 at 7:31 AM, Johannes Totz via Digitalmars-d <span dir="ltr"><<a href="mailto:digitalmars-d@puremagic.com" target="_blank">digitalmars-d@puremagic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On 31/03/2015 19:24, Andrei Alexandrescu wrote:<br>> Probably not; we're looking at two different builds. The build to be<br>
> deployed has no unittest code at all.<br>
<br>
</span>I'm starting to see this differently these days (basically since I<br>
started to use jenkins for everything):<br>
A build you haven't unit tested has implicitly failed. That means the<br>
release build that does not have any unit test bits is not deployable.<br>
Instead, compile as usual (both debug and release), and run unit tests<br>
against both (e.g. to catch compiler bugs in the optimiser).<br>
Then for deployment, drop/strip/remove/dont-package the unit test code.<br>
<div class=""><div class="h5"><br></div></div></blockquote><div><br></div><div>This.</div><div><br></div><div>I want to run unit tests as part of the build process, and I want my release build to have unit tests run against it.  If unit tests haven't passed for a build, it's not release ready.  But, I don't want my release build to be bloated with unit test code.  </div><div><br></div><div>Related, unit tests often have dependencies that I _don't_ want as part of my release build.  Mocking frameworks are a good example.</div><div><br></div></div></div></div>