Specifying which Phobos modules to unittest

Jesse Phillips Jessekphillips+D at gmail.com
Thu May 10 10:33:48 PDT 2012


On Thursday, 10 May 2012 at 16:22:11 UTC, Joseph Rushton Wakeling 
wrote:
> Hello all,
>
> Is there any way to specify individual Phobos modules to 
> unittest when building, instead of having to do the whole lot?
>
> When working on 1 single module, it'd be nice to be able to 
> unittest that one alone and not have to worry about doing the 
> complete set of tests until ready to push back to GitHub.
>
> Can anyone advise?
>
> Thanks & best wishes,
>
>     -- Joe

compile your module with an empty main (that is what the makefile 
does)

or

rdmd --main mymod.d -unittest


More information about the Digitalmars-d-learn mailing list