Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TestGinkgoOutput ¶
func TestGinkgoOutput(t *testing.T, expected SuiteResults, runSpecsArgs ...interface{})
Types ¶
type SuiteResults ¶
type SuiteResults []TestResult
type TestResult ¶
type TestResult struct { // Name is the full string for a Ginkgo It, including the "[Top Level]" prefix. Name string // Output written to GinkgoWriter during test. Output string // Failure is SpecSummary.Failure.Message with varying parts stripped. Failure string // Stack is a normalized version (just file names, function parameters stripped) of // Ginkgo's FullStackTrace of a failure. Empty if no failure. Stack string // Called to normalize the actual output string before comparison if non-nil. NormalizeOutput func(string) string // Called to normalize the actual failure string before comparison if non-nil. NormalizeFailure func(string) string }
TestResult is the outcome of one It spec.
Click to show internal directories.
Click to hide internal directories.