code: function triggerRunnerEvents() {
      reporter.jasmineStarted();
      for (var i=0; i<env._suites.length; i++) {
          var s = env._suites[i];
          triggerSuiteEvents(s);
      }
      reporter.jasmineDone();
  
      // pre-parse some data to be used by various specs
      writeCalls = reporter.writeFile.calls.all();
      for (i=0; i<writeCalls.length; i++) {
          writeCalls[i].output = writeCalls[i].args[0];
          writeCalls[i].xmldoc = xmlDocumentFromString(writeCalls[i].output);
      }
  }
docs: make sure reporter is set before calling this