Options for unit testing in D?
Mike Brockus
michael at squidfarts.com
Fri Jun 21 22:35:55 UTC 2019
On Friday, 21 June 2019 at 17:52:43 UTC, Mike Wey wrote:
> On 21-06-2019 06:08, Mike Brockus wrote:
>> [...]
>
> If you are using the D unittests in your source you can
> recompile the same source with `d_unittest: true`, the
> appstream-generator project does this:
> https://github.com/ximion/appstream-generator/blob/master/src/asgen/meson.build#L108
>
> Or you can keep the tests separate and compile these test
> separately like you are doing in your C project. I use this
> option in the GlibD project:
> https://github.com/gtkd-developers/GlibD/blob/master/tests/gobject/meson.build
So to use D 'unittest' I am required to include the main.d module
file in the tester executable?
More information about the Digitalmars-d-learn
mailing list