function (results) {
    var packet  = results.data,
        payload = this.hydratePayload(packet.name, packet.payload);

    var event = Cucumber.Runtime.AstTreeWalker.Event(packet.name, payload);

    this.formatter.hear(event, function () {});

    if (packet.payload && packet.payload.stepResult) {
      var status = event.getPayloadItem('stepResult').getStatus();
      if (status === Cucumber.Status.FAILED || status === Cucumber.Status.AMBIGUOUS) {
        this.failureCount++;
        this.eventMediator.emit('bail');
      }
    }
  }
function (results) {
    var packet  = results.data,
        payload = this.hydratePayload(packet.name, packet.payload);

    var event = Cucumber.Runtime.AstTreeWalker.Event(packet.name, payload);

    this.formatter.hear(event, function () {});

    if (packet.payload && packet.payload.stepResult) {
      var status = event.getPayloadItem('stepResult').getStatus();
      if (status === Cucumber.Status.FAILED || status === Cucumber.Status.AMBIGUOUS) {
        this.failureCount++;
        this.eventMediator.emit('bail');
      }
    }
  }
function ( results ) { var packet = results . data , payload = this . hydratePayload ( packet . name , packet . payload ) ; var event = Cucumber . Runtime . AstTreeWalker . Event ( packet . name , payload ) ; this . formatter . hear ( event , function ( ) { } ) ; if ( packet . payload && packet . payload . stepResult ) { var status = event . getPayloadItem ( 'stepResult' ) . getStatus ( ) ; if ( status === Cucumber . Status . FAILED || status === Cucumber . Status . AMBIGUOUS ) { this . failureCount ++ ; this . eventMediator . emit ( 'bail' ) ; } } }
CucumberReporter.handleTestResults(results)
- results (Object)
CucumberReporter . handleTestResults ( results ) - results ( Object )