runner

package
v1.11.16 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: MIT, MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildGinkgoArgs

func BuildGinkgoArgs(params map[string]string, path, runPath string) ([]string, error)

func BuildGinkgoPassThroughFlags

func BuildGinkgoPassThroughFlags(execution testkube.Execution) []string

BuildGinkgoPassThroughFlags should always be called after FindGinkgoParams so that it only acts on the "left over" Variables that are to be treated as pass through flags to GInkgo

func FindGinkgoParams

func FindGinkgoParams(execution *testkube.Execution, defaultParams map[string]string) map[string]string

FindGinkgoParams finds any GinkgoParams in execution.Variables

func InitializeGinkgoParams

func InitializeGinkgoParams() map[string]string

func MapJunitToExecutionResults

func MapJunitToExecutionResults(out []byte, suites []junit.Suite) (result testkube.ExecutionResult)

func MapStatus

func MapStatus(in junit.Status) (out string)

func MoveReport

func MoveReport(path string, reportsPath string, reportFileName string) error

Types

type GinkgoRunner

type GinkgoRunner struct {
	Params  envs.Params
	Fetcher content.ContentFetcher
	Scraper scraper.Scraper
}

func NewGinkgoRunner

func NewGinkgoRunner(ctx context.Context, params envs.Params) (*GinkgoRunner, error)

func (*GinkgoRunner) GetType

func (r *GinkgoRunner) GetType() runner.Type

GetType returns runner type

func (*GinkgoRunner) Run

func (r *GinkgoRunner) Run(ctx context.Context, execution testkube.Execution) (result testkube.ExecutionResult, err error)

func (*GinkgoRunner) Validate

func (r *GinkgoRunner) Validate(execution testkube.Execution) error

Validate checks if Execution has valid data in context of Ginkgo executor

Jump to

Keyboard shortcuts

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