it's only module level granularity.<div><br><div>I agree that a library solution is the way to go, however there needs to be a way to have finer granularity, ie being able to call individual unittests.</div><div>I gave the reasons in the 2nd post in this thread. Syntax would be: <span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">unittest(test_fun){...}</span></div>
<div><span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">having a short syntax such as this will make people use it.</span></div><div><span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"><br>
</span></div><div><span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">digressing, I wish there would be a simple non-anonymous way to vote for such features, to see whether most people agree/disagree. It's easier than voting by email, which invariably gets lost in digressions (as I'm doing here).</span></div>
<div><span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"><br></span></div><div><br><div class="gmail_quote">On Tue, May 21, 2013 at 11:36 AM, Nick Sabalausky <span dir="ltr"><<a href="mailto:SeeWebsiteToContactMe@semitwist.com" target="_blank">SeeWebsiteToContactMe@semitwist.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Tue, 21 May 2013 12:23:01 -0400<br>
"Steven Schveighoffer" <<a href="mailto:schveiguy@yahoo.com">schveiguy@yahoo.com</a>> wrote:<br>
<br>
> On Mon, 20 May 2013 21:52:51 -0400, Nick Sabalausky<br>
> <<a href="mailto:SeeWebsiteToContactMe@semitwist.com">SeeWebsiteToContactMe@semitwist.com</a>> wrote:<br>
><br>
> > So alright...Who's with me?!!! "Yeaaaa......!!!!!" (<-- Belushi<br>
> > running out the door)<br>
> ><br>
><br>
> I think we can handle this without compiler help.<br>
><br>
> The runtime is responsible for running unit tests.<br>
><br>
> It actually provides a hook to allow you to override the unit tests.<br>
> See here:<br>
> <a href="http://dlang.org/phobos/core_runtime.html#.Runtime.moduleUnitTester" target="_blank">http://dlang.org/phobos/core_runtime.html#.Runtime.moduleUnitTester</a><br>
> (set in a shared static ctor).  All you have to do is just run the<br>
> module's unit tests you desire.<br>
><br>
<br>
</div>Neat, I had no idea.<br>
<div class="im"><br>
> I would argue the "stock" unit test runner could be configured by an<br>
> environment variable to be able to run/exclude whatever you want.<br>
> This is eminently fixable in the library with a small pull request.<br>
><br>
<br>
</div>I think that definitely sounds like the way to go.<br>
<br>
</blockquote></div><br></div></div>