Skip to content

Commit

Permalink
Merge pull request #9 from macacajs/fixKill
Browse files Browse the repository at this point in the history
Add flag to keep server open after mocha closed
  • Loading branch information
xudafeng committed Mar 8, 2016
2 parents 151e899 + 528b7d5 commit e0b03c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions lib/run/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,11 @@ Runner.prototype.initMocha = function() {

mocha.on('close', data => {
this.emit('close', data);
process.send({
signal: 'kill'
});
if (!this.options.always) {
process.send({
signal: 'kill'
});
}
});

this.mocha = mocha;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "macaca-client",
"version": "1.0.6",
"version": "1.0.7",
"description": "macaca client for automation",
"keywords": [
"automation",
Expand Down

0 comments on commit e0b03c0

Please sign in to comment.