result

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2015 License: GPL-3.0, GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPostHook

func AddPostHook(result Result, executionResult *gauge_messages.ProtoExecutionResult)

func AddPreHook

func AddPreHook(result Result, executionResult *gauge_messages.ProtoExecutionResult)

func GetProtoHookFailure

func GetProtoHookFailure(executionResult *gauge_messages.ProtoExecutionResult) *(gauge_messages.ProtoHookFailure)

Types

type ExecTimeTracker

type ExecTimeTracker interface {
	AddExecTime(int64)
}

type Result

type Result interface {
	SetFailure()
	// contains filtered or unexported methods
}

type ScenarioResult

type ScenarioResult struct {
	ProtoScenario *gauge_messages.ProtoScenario
}

func (*ScenarioResult) AddContexts

func (scenarioResult *ScenarioResult) AddContexts(contextProtoItems []*gauge_messages.ProtoItem)

func (*ScenarioResult) AddExecTime

func (scenarioResult *ScenarioResult) AddExecTime(execTime int64)

func (*ScenarioResult) AddItems

func (scenarioResult *ScenarioResult) AddItems(protoItems []*gauge_messages.ProtoItem)

func (*ScenarioResult) GetFailure

func (scenarioResult *ScenarioResult) GetFailure() bool

func (*ScenarioResult) SetFailure

func (scenarioResult *ScenarioResult) SetFailure()

func (*ScenarioResult) UpdateExecutionTime

func (scenarioResult *ScenarioResult) UpdateExecutionTime()

type SpecResult

type SpecResult struct {
	ProtoSpec            *gauge_messages.ProtoSpec
	ScenarioFailedCount  int
	ScenarioCount        int
	IsFailed             bool
	FailedDataTableRows  []int32
	ExecutionTime        int64
	Skipped              bool
	ScenarioSkippedCount int
}

func (*SpecResult) AddExecTime

func (specResult *SpecResult) AddExecTime(execTime int64)

func (*SpecResult) AddScenarioResults

func (specResult *SpecResult) AddScenarioResults(scenarioResults []*ScenarioResult)

func (*SpecResult) AddSpecItems

func (specResult *SpecResult) AddSpecItems(resolvedItems []*gauge_messages.ProtoItem)

func (*SpecResult) AddTableDrivenScenarioResult

func (specResult *SpecResult) AddTableDrivenScenarioResult(scenarioResults [][](*ScenarioResult))

func (*SpecResult) SetFailure

func (specResult *SpecResult) SetFailure()

type SuiteResult

type SuiteResult struct {
	SpecResults       []*SpecResult
	PreSuite          *(gauge_messages.ProtoHookFailure)
	PostSuite         *(gauge_messages.ProtoHookFailure)
	IsFailed          bool
	SpecsFailedCount  int
	ExecutionTime     int64 //in milliseconds
	UnhandledErrors   []error
	Environment       string
	Tags              string
	ProjectName       string
	Timestamp         string
	SpecsSkippedCount int
}

func NewSuiteResult

func NewSuiteResult() *SuiteResult

func (*SuiteResult) AddSpecResult

func (suiteResult *SuiteResult) AddSpecResult(specResult *SpecResult)

func (*SuiteResult) SetFailure

func (suiteResult *SuiteResult) SetFailure()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL