func (sr *SuiteResult) AddSpecResults(specResults []*SpecResult) {
	for _, result := range specResults {
		sr.AddSpecResult(result)
	}
}
AddSpecResults adds multiple spec results to suit result.
package result
import (
	"path/filepath"
	"time"
	"github.com/getgauge/gauge-proto/go/gauge_messages"
	"github.com/getgauge/gauge/config"
	"github.com/getgauge/gauge/env"
)
type SuiteResult struct {
	SpecResults             []*SpecResult
	PreSuite                *(gauge_messages.ProtoHookFailure)
	PostSuite               *(gauge_messages.ProtoHookFailure)
	IsFailed                bool
	SpecsFailedCount        int
	ExecutionTime           int64  
	UnhandledErrors         []error
	Environment             string
	Tags                    string
	ProjectName             string
	Timestamp               string
	SpecsSkippedCount       int
	PreHookMessages         []string
	PostHookMessages        []string
	PreHookScreenshotFiles  []string
	PostHookScreenshotFiles []string
	PreHookScreenshots      [][]byte
	PostHookScreenshots     [][]byte
}
func NewSuiteResult(tags string, startTime time.Time) *SuiteResult {
	result := new(SuiteResult)
	result.SpecResults = make([]*SpecResult, 0)
	result.Timestamp = startTime.Format(config.LayoutForTimeStamp)
	result.ProjectName = filepath.Base(config.ProjectRoot)
	result.Environment = env.CurrentEnvironments()
	result.Tags = tags
	return result
}
func (sr *SuiteResult) SetFailure() {
	sr.IsFailed = true
}
func (sr *SuiteResult) SetSpecsSkippedCount() {
	sr.SpecsSkippedCount = 0
	for _, specRes := range sr.SpecResults {
		if specRes.Skipped {
			sr.SpecsSkippedCount++
		}
	}
}
func (sr *SuiteResult) AddUnhandledError(err error) {
	sr.UnhandledErrors = append(sr.UnhandledErrors, err)
}
func (sr *SuiteResult) UpdateExecTime(startTime time.Time) {
	sr.ExecutionTime = int64(time.Since(startTime) / 1e6)
}
func (sr *SuiteResult) AddSpecResult(specResult *SpecResult) {
	if specResult.IsFailed {
		sr.IsFailed = true
		sr.SpecsFailedCount++
	}
	sr.ExecutionTime += specResult.ExecutionTime
	sr.SpecResults = append(sr.SpecResults, specResult)
}