constants

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusFail = "Fail"
	StatusPass = "Pass"
	StatusSkip = "Skip"
)

Test case status

View Source
const (
	LifecycleTestSetup    = "FrameworkTestSetup"
	LifecycleArrange      = "Arrange"
	LifecycleAct          = "Act"
	LifecycleAssert       = "Assert"
	LifecycleAfter        = "After"
	LifecycleTestFinished = "FrameworkTestFinished"
)

Test case stages

View Source
const (
	ResultPass = "PASS"
	ResultFail = "FAIL"
)

test result constants

View Source
const DefaultHttpTimeout = time.Second * 30 // default HTTP client timeout

Variables

This section is empty.

Functions

This section is empty.

Types

type Statistics

type Statistics struct {
	Name     string
	Failed   bool
	Fatal    bool
	Statuses []Status
	Timings  map[string]Timing
	Start    time.Time
	End      time.Time
	Duration time.Duration
	Output   string
}

Statistics are the test results that will be saved to the DB

type Status

type Status struct {
	Status    string
	Lifecycle string
	Fatal     bool
}

Status stores the lifecycle stage and test status

type Timing

type Timing struct {
	Lifecycle string
	Start     time.Time
	End       time.Time
	Duration  time.Duration
	Started   bool
	Ended     bool
}

Timing stores the start, end, and duration of a lifecycle stage

Jump to

Keyboard shortcuts

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