Does "dub test" run tests?

Russel Winder via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Mar 20 01:39:01 PDT 2017


On Mon, 2017-03-20 at 00:58 -0700, Jonathan M Davis via Digitalmars-d-
learn wrote:
> 
[…]
> I haven't spent the time to dig in and report it properly, but based
> on some
> of what I saw recently on a project I have, the module with main in
> it
> didn't have its tests run, as if dub's didn't compile it when
> compiling the
> unit tests. The tests in the other modules were definitely run
> though. So, I
> think that dub probably does have a bug with regards to how it
> handles the
> module with main in it.

Actually it seems worse than that. Even with "dub -b unittest" it
appears that Dub  compiles main.d without the -unittest flag to ldc2
and so the normal application runs.

-- 
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder at ekiga.net
41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel at winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20170320/73a9b227/attachment.sig>


More information about the Digitalmars-d-learn mailing list