[Issue 1952] New: Support a unit test handler
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Mar 26 17:42:57 PDT 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1952
Summary: Support a unit test handler
Product: D
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: jason.james.house at gmail.com
I'd like to see a way for the D language to push unit test handling into an
external library. If a unit test is treated as a delegate, it can then boil
down to a single call to a unit test handler.
I'd suggest using any args of the unit test to be arguments into whatever unit
test handler exists. This would allow use of special libraries built to
leverage an already existing unit testing framework.
Example:
source:
unittest("My test name"){ ... }
... causes the compiler to call:
void unitTestHandler(delegate void dg(), char[])
--
More information about the Digitalmars-d-bugs
mailing list