<p>I am having the same problem with visual d plugin for monodevelop. When I compile from the command line the tests run.</p>
<p>A possibly related problem is that some files do not get recompiled when changed unless I do a rebuild.</p>
<div class="gmail_quote">On Feb 23, 2012 8:38 PM, "Jonathan M Davis" <<a href="mailto:jmdavisProg@gmx.com">jmdavisProg@gmx.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Friday, February 24, 2012 02:11:50 Chris Pons wrote:<br>
> I am following the book "The D Programming Language" and am at<br>
> the portion about functions and unittest. For some reason I<br>
> cannot get unittest to do anything noticeable.<br>
<br>
If the unit tests pass, they don't print anything unless you add statements to<br>
them which do. You only get stuff being printed out on failure. This works<br>
particularly well for the command line (it's normal in Unix-land for stuff to<br>
print nothing on success unless them printing stuff out is their job - this<br>
makes it easier to pipe programs and the like). Some people complain about it<br>
from time to time, but that's the way it is. If you really want them to print<br>
something though, you can always add your own print statements.<br>
<br>
If you compiled with -unittest, the unit tests run before main does, so if all<br>
of your tests pass, then your program will run normally after the unit tests<br>
have been run.<br>
<br>
It's not uncommon for people to do something like this so that they can have<br>
the unit tests run without running their actual program:<br>
<br>
version(unittest) void main() {}<br>
else void main()<br>
{<br>
//Your normal main...<br>
}<br>
<br>
- Jonathan M Davis<br>
</blockquote></div>