# README
Fail Handlers
PrintTrimmedStack
The PrintTrimmedStack
fail handler simplifies error tracking in ginkgo tests by printing a condensed stack trace upon failure. Printout excludes well-known overhead files so you can more easily sight the failing line. This eliminates the need to count stack offset via ExpectWithOffset
. You can just use Expect
.
Usage
To use, register PrintTrimmedStack
as a prefail handler with RegisterPreFailHandler
in your ginkgo
suite:
func TestCliCore(t *testing.T) {
testutils.RegisterPreFailHandler(
func() {
testutils.PrintTrimmedStack()
})
testutils.RegisterCommonFailHandlers()
RegisterFailHandler(Fail)
testutils.SetupLog()
RunSpecs(t, "Clicore Suite")
}
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
No description provided by the author
No description provided by the author
ExpectEqualProtoMessages provides richer error messages than struct comparison by leveraging the String() method that all proto Messages provide.
returns the absolute path to the file the caller intended to provide a way to find test files.
Relies on eris (https://github.com/rotisserie/eris)'s concept of error identity, specifically:
"eris.Is returns true if a particular error appears anywhere in the error chain..
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PrintTrimmedStack helps you find the line of the failing assertion without producing excessive noise.
No description provided by the author
No description provided by the author
No description provided by the author
Deprecated: this function is incredibly slow, use CreateNamespacesInParallel instead.
No description provided by the author
Deprecated: this function is incredibly slow, use DeleteNamespacesInParallelBlocking instead.
WaitPodsRunning waits for all pods to be running.
No description provided by the author
# Constants
used for testing because of complexity.
# Variables
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author