Get UDA of unit tests during Runtime.moduleUnitTester

Seb via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jul 25 21:09:41 PDT 2017


On Wednesday, 26 July 2017 at 03:27:30 UTC, Matthew Remmel wrote:
> I'd like to print out the name given to a unit test via a UDA, 
> as the tests are being ran by the Runtime.moduleUnitTester. I'm 
> working on writing a custom unit test runner. It would seem 
> that the ModuleInfo.unitTest property is an aggregated function 
> of all the individual unit test blocks in a module, and 
> therefore the UDA value is lost.
>
> [...]


Do you know https://github.com/atilaneves/unit-threaded?


More information about the Digitalmars-d-learn mailing list