mocha-steps
mocha-steps copied to clipboard
add minor steps
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.
Hi, sorry just seeing this. What's the advantage of introducing another keyword, as opposed to using it
which every developer already understands?
I thought it would be good to unifying names for steps, and I really missed that we could use it
with minor step functionality
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 () {} )