webdriverio-boneyard / wdio-cucumber-framework

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

webdriverio with cucumber - code snippet for undefined steps not printing to console #57

Closed rameshrengasamy closed 6 years ago

rameshrengasamy commented 7 years ago

@christian-bromann First of all, I m sorry to bring up this back. Couldnt reopen the older issue. I know you replied to this in the other issue i created #56 But just thought to understand/get clear. Sorry again on first place. So i see protractor cucumber framework (https://www.npmjs.com/package/protractor-cucumber-framework) does print the snippets to the console. So it must be getting that from cucumber in some way right? When i run the cucumber tests with protractor, when there are no steps defined it prints as below in the console.

image

But when i run similar test with wdio-cucumber-framework, i get the below in console -->

image

It doesnt display the snippets for undefined steps.

This would be a useful feature as someone new to the framework can use this skeleton to build tests.

Is this something still could be added as a functionality or do i have to set any flag or this is out of scope for wdio-cucumber-framework?

christian-bromann commented 7 years ago

It is definitely useful so PRs welcome

johanvaniperen commented 6 years ago

I added a reporter for this, wdio-cucumber-snippet-reporter. So, if you want to take a look. That 'll be nice :-)

christian-bromann commented 6 years ago

Awesome 👍