diff --git a/lib/launcher.js b/lib/launcher.js index 524847016..48e99d89e 100644 --- a/lib/launcher.js +++ b/lib/launcher.js @@ -134,6 +134,15 @@ var init = function(argv) { log_('Runner Process(' + childFork.process.pid + ') Error: ' + err); }); + + childFork.process.on('message', function(m) { + switch (m.event) { + case 'testsDone': + childFork.failedCount = m.failedCount; + break; + } + }); + childFork.process.on('exit', function(code, signal) { if (code) { log_('Runner Process Exited With Error Code: ' + code);