Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunStage ¶
func RunStage(runContext *TestRunContext, ftwCheck *check.FTWCheck, testCase test.Test, stage test.Stage)
RunStage runs an individual test stage. runContext contains information for the current test run ftwCheck is the current check utility testCase is the test case the stage belongs to stage is the stage you want to run
func RunTest ¶
func RunTest(runContext *TestRunContext, ftwTest test.FTWTest)
RunTest runs an individual test. runContext contains information for the current test run ftwTest is the test you want to run
Types ¶
type Config ¶
type Config struct {
// Include is a regular expression to filter tests to include. If nil, all tests are included.
Include *regexp.Regexp
// Exclude is a regular expression to filter tests to exclude. If nil, no tests are excluded.
Exclude *regexp.Regexp
// ShowTime determines whether to show the time taken to run each test.
ShowTime bool
// Quiet determines whether to output informational messages.
Quiet bool
// ConnectTimeout is the timeout for connecting to endpoints during test execution.
ConnectTimeout time.Duration
// ReadTimeout is the timeout for receiving responses during test execution.
ReadTimeout time.Duration
}
Config provides configuration for the test runner.
type TestResult ¶
type TestResult int
TestResult type are the values that the result of a test can have
const ( Success TestResult = iota Failed Skipped Ignored ForcePass ForceFail )
Handy constants for test results
type TestRunContext ¶
type TestRunContext struct {
Include *regexp.Regexp
Exclude *regexp.Regexp
ShowTime bool
Output bool
Stats TestStats
Result TestResult
Duration time.Duration
Client *ftwhttp.Client
LogLines *waflog.FTWLogLines
RunMode config.RunMode
}
TestRunContext carries information about the current test run. This includes both configuration information as well as statistics and results.
Click to show internal directories.
Click to hide internal directories.