unittests, dub and libraries
Joe
jma at freedomcircle.com
Wed Mar 28 03:21:32 UTC 2018
On Wednesday, 28 March 2018 at 03:07:23 UTC, Jonathan M Davis
wrote:
> Run
>
> dub test
>
> The problem is that an executable needs a main, and a library
> doesn't have one, whereas when you're testing a library, you
> need an executable. So, a main must be inserted - e.g. with the
> -main flag to dmd. Just building the unittest build doesn't
> insert one. However, dub test _does_ deal with that for you.
Thanks.
More information about the Digitalmars-d-learn
mailing list