wdio-cucumber-framework icon indicating copy to clipboard operation
wdio-cucumber-framework copied to clipboard

step definition files should be watched

Open elasim opened this issue 7 years ago • 4 comments

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

elasim avatar Apr 19 '18 08:04 elasim

@elasim feel free to propose a PR

christian-bromann avatar Apr 19 '18 08:04 christian-bromann

@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.

wswebcreation avatar Jul 26 '18 05:07 wswebcreation

@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.

elasim avatar Jul 26 '18 06:07 elasim

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.

wswebcreation avatar Jul 26 '18 06:07 wswebcreation