scenclibase

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: GPL-3.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunScenariosAtPath

func RunScenariosAtPath(path string, options CLIRunOptions) error

RunScenariosAtPath runs either; - all scenarios in folder if path is a directory - single scenario given as path.

func ScenariosCLI

func ScenariosCLI(version string, vmFlags CLIRunConfig)

ScenariosCLI provides the functionality for any scenarios test executor.

Types

type CLIRunConfig

type CLIRunConfig interface {
	GetFlags() []cli.Flag
	ParseFlags(cCtx *cli.Context) CLIRunOptions
}

CLIRunConfig prepares and interprets CLI flags required to run scenarios at a path.

type CLIRunOptions

type CLIRunOptions struct {
	RunOptions *scenio.RunScenarioOptions
	VMBuilder  scenexec.VMBuilder
}

CLIRunOptions are all the options needed to run scenarios in a directory.

Jump to

Keyboard shortcuts

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