gulp-webdriver icon indicating copy to clipboard operation
gulp-webdriver copied to clipboard

Plugin does not successfully exit gulp task

Open shamrt opened this issue 8 years ago • 1 comments

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!

shamrt avatar Feb 16 '17 16:02 shamrt

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

aleksanyan avatar Feb 13 '18 13:02 aleksanyan