Selective unittesting in DUB

Jacob Carlborg via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Dec 21 11:49:20 PST 2016


On 2016-12-21 19:07, Nordlöw wrote:
> Is there a way to specify in dub.json (or any other file) that only a
> subset of the sources compiled and linked to a library or app should
> have they're unittests enabled?

You can use the "unittest" configuration in Dub to add or remove files, 
but I don't think you can disable some of the unittest blocks in a 
single module.

There's also unit-threaded [1] which allows you to run specific unit tests.

[1] https://github.com/atilaneves/unit-threaded

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list