ModuleInfo, factories, and unittesting

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Tue Dec 20 10:33:21 PST 2016


On 12/20/2016 12:01 AM, Dicebot wrote:
> We rely on ModuleInfo for custom test runner in ocean
> (https://github.com/sociomantic-tsunami/ocean/blob/v2.x.x/src/ocean/core/UnitTestRunner.d).
> Static introspection can't provide same functionality in general case
> (even if all bugs will be fixed) because it requires either maintaining
> list of all modules or ensuring everything is imported from some root
> module. Former is inconvenience, latter is simply not true for libraries
> (though can be worked around by build system).

Does that simply need to find all the unit tests? (There are ways to do that 
without ModuleInfo, it's just that it's convenient and portable with ModuleInfo.)


More information about the Digitalmars-d mailing list