Step registration syntax is ugly
From https://github.com/acmcarther/cucumber/blob/master/features/cuke.rs#L20:
cucumber::start(
CucumberWorld::new(),
&[
&project_steps::register_steps,
]
);
To a newcomer to rust (well, to anyone with eyeballs really), this looks obtuse for two reasons:
- &[] syntax is obnoxious
- Passing in registration functions is weird.
Maybe just update the examples to demo registering the steps manually, and add a macro to register them more terse-ly?
How about a fluent interface for 1.? Something like this?
Ah that looks awesome! Much more consistent behavior. Can you put up a pull request with that content?
A lot of random test might break. I can help in fixing them if you'd like.
I can start a pr, but I cannot promise anything further for the next to weeks.