On 2013-11-06 23:33, Gary Willoughby wrote:
foreach (module_; ModuleInfo)
{
     auto func = module_.unitTest;
     func(); // run tests;
}

The above code retrieves all of the current project's modules and then
grabs each module's unit test blocks. The only trouble is that the
module's unit tests are kinda rolled into one function as show by the
'func' variable above. It would be nice to do this but get each
individual unit test instead of dealing with these rolled up versions.

See my reply to Dicebot: http://forum.dlang.org/thread/ewtbainwyxxyaqwhf...@forum.dlang.org#post-l5fjfe:242nvb:241:40digitalmars.com

--
/Jacob Carlborg

Reply via email to