On Thursday, 16 July 2015 at 08:26:58 UTC, Marc Sch├╝tz wrote:
On Wednesday, 15 July 2015 at 19:28:13 UTC, Jacob Carlborg wrote:
On 2015-07-13 09:12, Atila Neves wrote:

https://www.reddit.com/r/programming/comments/3d3ooa/behaviourdriven_development_with_d_and_cucumber/


Also on HN, but as usual can't post the link.

The comment about not having to name the steps. One way to do that could be something like this:

step("foo bar", {
    // step implementation
});

There are two problems with that:

1. D doesn't support module level code like this. Which could be solved by either using a unit test block, a module constructor or some other function the framework knows about to call.

Do mixin templates work on module level? They can even have an identifier.

Yes. But it doesn't make it pretty to use:

    mixin When!(`...`, { });

Atila

Reply via email to