Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FullTester ¶
type FullTester struct { Testers ImageTesters // contains filtered or unexported fields }
FullTester should always be the ONLY implementation of the Tester interface; newly added testing implementations should implement the imageTester interface.
func (FullTester) Test ¶
Test is the top level testing execution call. It serves as the entrypoint to all individual tests.
func (FullTester) TestDependencies ¶
func (t FullTester) TestDependencies(ctx context.Context, artifact *latestV1.Artifact) ([]string, error)
TestDependencies returns the watch dependencies for the target artifact to the runner.
type ImageTester ¶ added in v1.22.0
type ImageTester interface { Test(ctx context.Context, out io.Writer, tag string) error TestDependencies(ctx context.Context) ([]string, error) }
ImageTester 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 ImageTesters ¶ added in v1.22.0
type ImageTesters map[string][]ImageTester
ImageTesters is a collection of imageTester interfaces grouped by the target image name
type Tester ¶
type Tester interface { Test(context.Context, io.Writer, []graph.Artifact) error TestDependencies(ctx context.Context, artifact *latestV1.Artifact) ([]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 Tester which implements a single test run.