On Wednesday, 26 July 2017 at 06:47:20 UTC, Jacob Carlborg wrote:
On 2017-07-26 05:27, Matthew Remmel wrote:

[...]

Unless you want to go with the approach Seb suggested, using unit-threaded, you need to recursively iterate the module to get all aggregates using __traits(allMembers) then use __traits(getUnitTests) for each aggregate to get all unit tests.

[...]

That's not possible, the UDAs are lost after compile time. Also, all the unit tests block are combined into one function per module, which is what Runtime.moduleUnitTester is running. The separate unit test blocks are gone at runtime so there's nothing to connect the UDAs to.

Thanks for the info, I'll look into the threaded unit test library and see what they are doing, and how.

-Matt

Reply via email to