Named unittests
deadalnix via Digitalmars-d
digitalmars-d at puremagic.com
Tue Mar 31 15:58:37 PDT 2015
On Tuesday, 31 March 2015 at 21:50:56 UTC, Martin Nowak wrote:
> On 03/30/2015 11:52 PM, Andrei Alexandrescu wrote:
>> I'd like to make a DIP for named unittests. Who can help me
>> with that?
>
> Why a DIP, isn't the only question what syntax to use.
>
> unittest (myname) vs. unittest ("mynameexpression")
>
>> Andrei
>
> There is an ER and an half of an implementation.
>
> https://issues.dlang.org/show_bug.cgi?id=4747
> https://github.com/D-Programming-Language/dmd/pull/1131
> https://github.com/D-Programming-Language/druntime/pull/308
So now we are going to change the language for this ?
There is a natural name for unitests, the name of the module. We
have way to break module into pieces in a backward compatible
manner now, so it's all good.
We may want to add various annotation to a test, and we have UDA
for that.
So the only things that is really needed is a way to customize
the test runner from client code to output whatever everybody
needs.
More information about the Digitalmars-d
mailing list