[Issue 11745] New: Unittests retrieved by __traits(getUnitTests) can not be invoked if private.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Dec 14 13:49:08 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=11745

           Summary: Unittests retrieved by __traits(getUnitTests) can not
                    be invoked if private.
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: opantm2+dbugs at gmail.com


--- Comment #0 from Kapps <opantm2+dbugs at gmail.com> 2013-12-14 13:49:05 PST ---
Private unit tests are used to prevent documented tests from appearing as
example code. But currently if a unittest is within a private: block or marked
private, you may not invoke it. This means that replacement unit test
frameworks aren't able to actually run the tests though the default one can.
This isn't an issue with __traits(getUnitTests), but AFAIK it's the only way to
actually access the tests to invoke them in the first place (excluding invoking
the entire module's tests at once through ModuleInfo).

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list