webdriverio-boneyard / wdio-cucumber-framework

A WebdriverIO v4 plugin. Adapter for Cucumber testing framework.
MIT License
77 stars 61 forks source link

feat: add option to fail ambiguous step definitions #27

Closed timbru31 closed 8 years ago

timbru31 commented 8 years ago

This adds the possibility to fail ambiguous step definitions instead of just skipping them. It's false per default.

An example use case is to force the developers to update their step definitions, without enabling strict mode since pending steps might be OK due to the fact that some parts of the tests can not be implemented right now.

timbru31 commented 8 years ago

@christian-bromann updated the PR with your feedback

timbru31 commented 8 years ago

@christian-bromann I've made a note in the README that the two options are specific wdio-cucumber-framework options.

I've also added the ambiguous steps definitions as the error stack so a user knows where to look and fix the issue :)

timbru31 commented 8 years ago

Ping @christian-bromann any feedback for this PR? :)

christian-bromann commented 8 years ago

LGTM 👍

christian-bromann commented 8 years ago

released with v0.2.2

timbru31 commented 8 years ago

thanks!