runner

package
v1.12.5-beta001 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 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, reportFile string, execution testkube.Execution) ([]string, error)

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
	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