Named unittests
Jacob Carlborg via Digitalmars-d
digitalmars-d at puremagic.com
Wed Apr 1 07:15:20 PDT 2015
On 2015-03-31 15:31, Dicebot wrote:
> Most powerful solution would be to simply put attributes for unittest
> blocks in runtime information for tests (using RTTI it should be
> possible to define such variadic structure in similar manner as D-style
> variadic function arguments).
I think the most powerful and most generic solution would be to:
1. Remove the unittest keyword
2. Make code executable at module scope
3. Add support for trailing delegate syntax
module foo;
unittest("foobar")
{
}
Would be lowered to
unittest("foobar", {
});
Works with benchmark and other things as well.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list