protractor icon indicating copy to clipboard operation
protractor copied to clipboard

Feature Request: Provide a file watcher so scenarios are re-executed when changed

Open lavinjj opened this issue 13 years ago • 6 comments

As I have been converting my existing ngScenarios over to protractor, I find it would be useful to have the capability for protractor to watch the files in the scenario list and re-execute them if they change, much like Karma does.

lavinjj avatar Sep 11 '13 19:09 lavinjj

Thanks for the input! I'd been holding off on a file watcher because end2end tests tend to be more heavyweight and might get your application into a weird state if not cleaned up properly - making them bad candidates for running all the time. If this is a popular request though, I'm happy to consider it!

juliemr avatar Sep 11 '13 19:09 juliemr

+1, but I think this would be much better suited for something like Grunt (or other task runners). Ideally there would be a grunt-protractor task which could get kicked off via the watch task. Depends on #17 I think.

jonjaques avatar Sep 12 '13 18:09 jonjaques

I think what jonjaques is proposing is a better solution.

lavinjj avatar Sep 12 '13 21:09 lavinjj

See #155

juliemr avatar Oct 09 '13 19:10 juliemr

I see yours view point about e2e be more heavyweight, but keep in mind that there are a lot of people using phantom to run e2e headless. This is my case, actually e2e break our build as well. Then i think this feature is a good improvement issue.

vipper avatar Nov 19 '13 20:11 vipper

it should works like. tags watch, dev, focus in Chimp framework.

gjunming avatar Apr 17 '16 23:04 gjunming