code: function triggerRunnerEvents() {
      var logs = [];
      var _stdoutWrite = process.stdout.write;
      process.stdout.write = function() {
          logs.push(arguments[0]);
      };
      reporter.jasmineStarted();
      for (var i=0; i<env._suites.length; i++) {
          var s = env._suites[i];
          triggerSuiteEvents(s);
      }
      reporter.jasmineDone();
      process.stdout.write = _stdoutWrite;
      return logs;
  }
docs: make sure reporter is set before calling this