webdriverio-boneyard / gulp-webdriver

gulp-webdriver is a gulp plugin to run selenium tests with the WebdriverIO testrunner
http://webdriver.io
MIT License
76 stars 33 forks source link

Plugin does not successfully exit gulp task #61

Open shamrt opened 7 years ago

shamrt commented 7 years ago

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

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!

aleksanyan commented 6 years ago

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);
}