func (e *simpleExecution) executeSpecs(specs *gauge.SpecCollection) { for specs.HasNext() { s := specs.Next() ex := newSpecExecutor(s, e.runner, e.pluginHandler, getDataTableRows(s.DataTable.Table.GetRowCount()), e.consoleReporter, e.errMaps) e.suiteResult.AddSpecResult(ex.execute()) } }
func (e *simpleExecution) executeSpecs(specs *gauge.SpecCollection) []*result.SpecResult { var results []*result.SpecResult for specs.HasNext() { s := specs.Next() ex := newSpecExecutor(s, e.runner, e.pluginHandler, getDataTableRows(s.DataTable.Table.GetRowCount()), e.consoleReporter, e.errMaps) results = append(results, ex.execute()) } return results }