On Wednesday, 6 November 2013 at 22:33:48 UTC, Gary Willoughby
wrote:
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.
It is done via runtime reflection and completely different from
__traits approach. You will also 100% loose all User Defined
Attributes attached to test blocks because of their compile-time
nature. This is IMHO why it was somewhat abandoned as less
promising approach.