test

package
v0.34.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FullTester

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

FullTester should always be the ONLY implementation of the Tester interface; newly added testing implementations should implement the Runner interface.

func (FullTester) Test

func (t FullTester) Test(ctx context.Context, out io.Writer, bRes []build.Artifact) error

Test is the top level testing execution call. It serves as the entrypoint to all individual tests.

func (FullTester) TestDependencies

func (t FullTester) TestDependencies() ([]string, error)

TestDependencies returns the watch dependencies to the runner.

type Runner

type Runner interface {
	Test(ctx context.Context, out io.Writer, image string) error
}

Runner is the lowest-level test executor in Skaffold, responsible for running a single test on a single artifact image and returning its result. Any new test type should implement this interface.

type Tester

type Tester interface {
	Test(context.Context, io.Writer, []build.Artifact) error

	TestDependencies() ([]string, error)
}

Tester is the top level test executor in Skaffold. A tester is really a collection of artifact-specific testers, each of which contains one or more TestRunners which implements a single test run.

func NewTester

func NewTester(runCtx *runcontext.RunContext) Tester

NewTester parses the provided test cases from the Skaffold config, and returns a Tester instance with all the necessary test runners to run all specified tests.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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