webdriverio-boneyard / wdio-cucumber-framework

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

step definition files should be watched #121

Open elasim opened 6 years ago

elasim commented 6 years ago

Currently, this framework is supported feature files only. it also should have to watch change of step definition files.

christian-bromann commented 6 years ago

@elasim feel free to propose a PR

wswebcreation commented 6 years ago

@elasim What do you exactly mean with

Currently, this framework is supported feature files only. it also should have to watch change of step definition files.

elasim commented 6 years ago

@wswebcreation e.g.,

when we have some test files like below

sync-async-step-definition.js
sync-async.feature

change of .feature files will trigger test, but .step-definition.js will not trigger any test.

wswebcreation commented 6 years ago

hmm, ok,

According to the docs the watch mode in webdriver.io only watches spec files, which are the feature files in case of using CucumberJS. If you also want to watch on the step files config.cucumberOpts.require needs to be watched to. As far as my knowledge of webdriver.io and wdio-cucumber-framework now reaches it needs to be a change and thus a PR on both modules.