digitalmars.D.bugs - [Issue 11745] New: Unittests retrieved by __traits(getUnitTests) can not be invoked if private.
- d-bugmail puremagic.com (24/24) Dec 14 2013 https://d.puremagic.com/issues/show_bug.cgi?id=11745
- d-bugmail puremagic.com (11/11) Dec 14 2013 https://d.puremagic.com/issues/show_bug.cgi?id=11745
- d-bugmail puremagic.com (11/11) Dec 14 2013 https://d.puremagic.com/issues/show_bug.cgi?id=11745
- d-bugmail puremagic.com (8/8) Dec 25 2013 https://d.puremagic.com/issues/show_bug.cgi?id=11745
- d-bugmail puremagic.com (10/10) Dec 25 2013 https://d.puremagic.com/issues/show_bug.cgi?id=11745
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 puremagic.com ReportedBy: opantm2+dbugs gmail.com 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: -------
Dec 14 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11745 Jacob Carlborg <doob me.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |doob me.com As a workaround you should be able to invoke the unit test function via a pointer. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 14 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11745 Kapps <opantm2+dbugs gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull AssignedTo|nobody puremagic.com |opantm2+dbugs gmail.com Pull request: https://github.com/D-Programming-Language/dmd/pull/2963 -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 14 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11745 Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/6a14e3de13cd9b94f6783699e0ab46d2deec319a Added unittests for issue 11745. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 25 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11745 Walter Bright <bugzilla digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla digitalmars.com Resolution| |FIXED -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 25 2013