output

package
v1.27.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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.

Jump to

Keyboard shortcuts

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