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.
Click to show internal directories.
Click to hide internal directories.