Skip to content
This repository has been archived by the owner on Dec 18, 2019. It is now read-only.

step definition files should be watched #121

Open
elasim opened this issue Apr 19, 2018 · 4 comments
Open

step definition files should be watched #121

elasim opened this issue Apr 19, 2018 · 4 comments

Comments

@elasim
Copy link

elasim commented Apr 19, 2018

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

@christian-bromann
Copy link
Contributor

@elasim feel free to propose a PR

@wswebcreation
Copy link
Contributor

@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
Copy link
Author

elasim commented Jul 26, 2018

@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
Copy link
Contributor

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants