webdriverio-boneyard / wdio-cucumber-framework

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

Changed the emit call to add a UID for suite, scenario & step definition #40

Closed wvankuipers closed 7 years ago

wvankuipers commented 7 years ago

Please note: this PR is required for fixing issue #11 reported in the wdio-spec-reporter repo, please refer to that issue for more details.

In order to identify each suite, spec & step when reporting back to the user I added a UID, which is composed from the name of the suite/spec and it's line number in the feature file. This is also done for any parent suite/spec/step so we can always use the UID to identify parents as well.

This is a breaking change! Since the parent will no longer be correctly reported back to the reporter class. (will now read the UID of the parent)