package output

import "k8s.io/kubernetes/test/e2e/framework/internal/output"

Index

Functions

func TestGinkgoOutput

func TestGinkgoOutput(t *testing.T, expected TestResult, runSpecsArgs ...interface{})

TestGinkgoOutput runs the current suite and verifies that the generated JUnit file matches the expected result.

The Ginkgo output on the console (aka the test suite log) does not get checked. It is usually less important for the CI and more relevant when using test suite interactively. To see what that Ginkgo output looks like, run tests with "go test -v".

Types

type TestResult

type TestResult struct {
	// Called to normalize all output strings before comparison if non-nil.
	NormalizeOutput func(string) string

	// All test cases and overall suite results.
	Suite reporters.JUnitTestSuite
}

TestResult is the expected outcome of the suite, with additional parameters that determine equality.

Source Files

output.go

Version
v1.33.0 (latest)
Published
Apr 23, 2025
Platform
linux/amd64
Imports
13 packages
Last checked
13 hours ago

Tools for package owners.