runner

package
v0.0.0-...-b674c85 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

Runner runs an e2e test

func NewRunner

func NewRunner(testCase TestCase) (*Runner, error)

NewRunner returns a new runner for pkg

func (*Runner) Run

func (r *Runner) Run() error

Run runs the test.

type TestCase

type TestCase struct {
	Path   string
	Config TestCaseConfig
}

TestCase contains the information needed to run a test. Each test case run by this driver is described by a `TestCase`.

type TestCaseConfig

type TestCaseConfig struct {
	ExitCode int  `json:"exitCode,omitempty" yaml:"exitCode,omitempty"`
	Network  bool `json:"network,omitempty" yaml:"network,omitempty"`
	RunTimes int  `json:"runTimes,omitempty" yaml:"runTimes,omitempty"`
}

TestCaseConfig contains the config information for the test case

type TestCases

type TestCases []TestCase

TestCases contains a list of TestCase.

func ScanTestCases

func ScanTestCases(path string) (*TestCases, error)

ScanTestCases will recursively scan the directory `path` and return a list of TestConfig found

Jump to

Keyboard shortcuts

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