runner

package
v0.0.2-gradle-executor... Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapJunitToExecutionResults

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

func MapStatus

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

Types

type CypressRunner

type CypressRunner struct {
	Params  Params
	Fetcher content.ContentFetcher
	Scraper scraper.Scraper
}

CypressRunner - implements runner interface used in worker to start test execution

func NewCypressRunner

func NewCypressRunner() (*CypressRunner, error)

func (*CypressRunner) Run

func (r *CypressRunner) Run(execution testkube.Execution) (result testkube.ExecutionResult, err error)

func (*CypressRunner) Validate

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

Validate checks if Execution has valid data in context of Cypress executor Cypress executor runs currently only based on cypress project

type Params

type Params struct {
	Endpoint        string // RUNNER_ENDPOINT
	AccessKeyID     string // RUNNER_ACCESSKEYID
	SecretAccessKey string // RUNNER_SECRETACCESSKEY
	Location        string // RUNNER_LOCATION
	Token           string // RUNNER_TOKEN
	Ssl             bool   // RUNNER_SSL
	ScrapperEnabled bool   // RUNNER_SCRAPPERENABLED
	GitUsername     string // RUNNER_GITUSERNAME
	GitToken        string // RUNNER_GITTOKEN
}

Jump to

Keyboard shortcuts

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