Help us shape the future of Go! Take the 2026 Go Developer Survey

test

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectTestArtifacts

func CollectTestArtifacts(t *testing.T, artifactName string, c client.Client, cfg *rest.Config)

CollectTestArtifacts gets all the artifacts from the test run and saves them to the artifact path. Currently, it saves: - clusterextensions - clusterextensionrevisions - pods logs - deployments - catalogsources

func FindK8sClient

func FindK8sClient(t *testing.T) string

FindK8sClient returns the first available Kubernetes CLI client from the system, It checks for the existence of each client by running `version --client`. If no suitable client is found, the function terminates the test with a failure.

func NewSummary

func NewSummary(c api.Client, pods ...string) githubSummary

func PrintSummary

func PrintSummary(path string) error

PrintSummary executes the main summary template, generating the full test report. The markdown is template-driven; the summary methods are called from within the template. This allows us to add or change queries (hopefully) without needing to touch code. The summary will be output to a file supplied by the env target.

Types

This section is empty.

Jump to

Keyboard shortcuts

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