Voting for std.experimental.testing

Atila Neves via Digitalmars-d digitalmars-d at puremagic.com
Thu Oct 8 06:39:27 PDT 2015


On Thursday, 8 October 2015 at 08:52:04 UTC, Rikki Cattermole 
wrote:
> On 08/10/15 9:21 PM, Robert burner Schadek wrote:
>> [...]
>
> Yes, but:
>
> There is no way that could conflict with serializers/vibe.d's 
> definitions. Let alone ORM's.

?


> std/experimental/testing/gen_ut_main_mixin.d
> Why is it not package(std.experimental.testing) and more 
> importantly not called internal? There is nothing there which 
> the user should be touching.

This is supposed to be used by the user.


> Alright seriously?
> +    /**
> +     * Generate green coloured output on POSIX systems
> +     */
> +    string green(in string msg) @safe pure const
> +    {
> +        return escCode(Color.green) ~ msg ~ 
> escCode(Color.cancel);
> +    }
>
> Somebody fix please: https://github.com/robik/consoled

Get it into Phobos and I'll gladly use it.

> Further thought about UDA's especially those with high conflict 
> potential. Perhaps they should instead be moved out into e.g. 
> std.stdudas. That way it is not locked into e.g. testing while 
> being reusable.

If there's a conflict, that's what the package/module system is 
for:

@std.experimental.testing.name unittest { ... }

Atila





More information about the Digitalmars-d mailing list