Documentation ¶
Index ¶
- func Screenshot(targetFile string) chromedp.Action
- func SetTestContextData(ctx context.Context, testContext TestContext) context.Context
- func Suites(ctx context.Context, url string, suites TestSuites, opts Options)
- type Options
- type PostProcessingOptions
- type ScreenshotOptions
- type TestCase
- type TestContext
- type TestSuite
- type TestSuites
- type Title
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Screenshot ¶
Screenshot captures a screenshot and saves it to the given filename.
func SetTestContextData ¶ added in v0.0.4
func SetTestContextData(ctx context.Context, testContext TestContext) context.Context
Types ¶
type Options ¶
type Options struct { SortSuites bool SortTests bool Screenshot ScreenshotOptions LogError bool LogWarning bool LogInfo bool LogConsole bool }
Options enabled to configure the run.
type PostProcessingOptions ¶ added in v0.0.2
type ScreenshotOptions ¶ added in v0.0.2
type ScreenshotOptions struct { OutDir string OnFailure bool PostProcessing PostProcessingOptions }
ScreenshotOptions controls screenshot behavior.
type TestContext ¶ added in v0.0.2
type TestContext struct { ID int SuiteName string TestName string GroupName string ScreenshotOptions ScreenshotOptions Error string }
func MustGetTestContext ¶ added in v0.0.3
func MustGetTestContext(ctx context.Context) TestContext
type TestSuites ¶
TestSuites is a dictionary of TestSuite where the key is the test runSuite name.
Click to show internal directories.
Click to hide internal directories.