angular / protractor

E2E test framework for Angular apps
http://www.protractortest.org
MIT License
8.75k stars 2.31k forks source link

Protractor hangs when pointing to non existing spec file in multi capabilities #4665

Open wouterpol opened 6 years ago

wouterpol commented 6 years ago

I am running protractor with multi capabilities and specific spec files. When one of the spec files does not exists, that multi capability completely hangs and never exits. The other multi capability process continues and when it is finished, protractor keeps waiting on the hanging multi capability I/launcher - 1 instance(s) of WebDriver still running. The only way to recover, is to find the correct Node.js process and kill it. The hanging multi capability will exit with the following message: Unhandled rejection Error: ENOENT: no such file or directory, stat '<location of non existing spec file>' and will continue with other defined spec files.

I'm using cucumber on top of Protractor. Hence the .feature files as specs.

- Test 1 finishes successful - 
[chrome #11] [13:50:25] I/local - Shutting down selenium standalone server.

[13:50:25] I/testLogger -

[13:50:25] I/launcher - 1 instance(s) of WebDriver still running
[13:50:31] I/testLogger -
-- COMPLETELY HANGS AFTER THIS POINT -- 
Jordyderuijter commented 6 years ago

I am having the same issue. Also running on Windows 10 with the same versions or Node and Protractor.