busterjs / buster

Abandoned - A powerful suite of automated test tools for JavaScript.
http://docs.busterjs.org
Other
448 stars 37 forks source link

buster-ci should shutdown all browsers if the process exits unexpectedly #447

Open GCheung55 opened 9 years ago

GCheung55 commented 9 years ago

When buster-ci is exited while tests are running, the agents (browser spawned process) is left open.

Subsequent execution of buster-ci is unaware of the agents. When buster-ci runs to the end and exits, the agents do not close and buster-ci exits the process with code 1.

I'm proposing that an exit event handler is attached to the buster-ci process to close agents if they remain open.

Some documentation on the process exit event: http://nodejs.org/api/process.html#process_event_exit

dwittner commented 9 years ago

Closing the browsers on process exit is something i have already on my todo list for buster-ci. I will implement it before version 1.0 of Buster.JS.