mocha-steps icon indicating copy to clipboard operation
mocha-steps copied to clipboard

add minor steps

Open avkrash opened this issue 8 years ago • 3 comments

why not to add minor steps (such as notification check) that won't skip next steps if it failed. Yes we can use 'it' instead, but 'mstep' (or any other name), I think, is common-likely.

avkrash avatar Oct 10 '16 16:10 avkrash

Hi, sorry just seeing this. What's the advantage of introducing another keyword, as opposed to using it which every developer already understands?

rprieto avatar Jul 31 '17 23:07 rprieto

I thought it would be good to unifying names for steps, and I really missed that we could use it with minor step functionality

avkrash avatar Aug 14 '17 13:08 avkrash

Thanks I see where you're coming from. What about step.optional to make it more explicit? I'd then mention it on the REAMDE like:


You mix and match step with the standard it to keep the existing behaviour. Any test with it will run normally, and won't prevent the rest of the suite from running. it is also aliased as step.optional for more clarity.

step('login', function () {} )
step.optional('click on specials', function () {} )
step('buy item', function () {} )

rprieto avatar Aug 15 '17 08:08 rprieto