Documentation ¶
Overview ¶
Package params implements function parameters for [e2e.Suite]
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithDevMode ¶
func WithDevMode() func(*Params)
WithDevMode enables dev mode. Dev mode doesn't destroy the environment when the test finished which can be useful when writing a new E2E test.
func WithLazyEnvironment ¶
func WithLazyEnvironment() func(*Params)
WithLazyEnvironment skips environment creation until the first explicit call to suite.Env()
func WithSkipDeleteOnFailure ¶
func WithSkipDeleteOnFailure() func(*Params)
WithSkipDeleteOnFailure doesn't destroy the environment when a test fail.
func WithStackName ¶
WithStackName overrides the default stack name. This function is useful only when using [Run].
Types ¶
type Option ¶
type Option = func(*Params)
Option is an optional function parameter type for e2e options
type Params ¶
type Params struct { StackName string // Setting DevMode allows to skip deletion regardless of test results // Unavailable in CI. DevMode bool SkipDeleteOnFailure bool // Setting LazyEnvironment allows to skip environment creation // until the first explicit call to suite.Env() LazyEnvironment bool }
Params implements [e2e.Suite] options
Click to show internal directories.
Click to hide internal directories.