gulp-webdriver
gulp-webdriver copied to clipboard
Plugin does not successfully exit gulp task
The problem
Running gulp e2e
task does not successfully end task once finished running my test suite.
I'm assuming that it's me, and not you, but I've stripped out everything that I can and it's still not completing the task. I have to manually kill Gulp in the command line.
Environment
- Mac OSX 10.12.3
- WebdriverIO version: 4.6.2
- Node.js version: 6.7.0
Details
I've created a temporary stripped-down repository that can run a basic tests:
https://github.com/shamrt/wdio-issue
Thanks so much for your help!
Had a same problem recently. Workaround for me was editing wdio.conf.js
with the following.
/**
* Gets executed after all workers got shut down and the process is about to exit.
* @param {Object} exitCode 0 - success, 1 - fail
* @param {Object} config wdio configuration object
* @param {Array.<Object>} capabilities list of capabilities details
*/
onComplete: function(exitCode, config, capabilities) {
process.exit(exitCode);
}