Documentation ¶
Index ¶
- Variables
- func AfterAll(body func()) bool
- func AfterEach(body func(), timeout ...float64) bool
- func AfterFailed(body func()) bool
- func BeAnything() types.GomegaMatcher
- func BeforeAll(body func()) bool
- func BeforeEach(body interface{}, timeout ...float64) bool
- func JustAfterEach(body func()) bool
- func RunAfterEach(cs *scope)
- type Done
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Context = wrapContextFunc(ginkgo.Context, false) FContext = wrapContextFunc(ginkgo.FContext, true) PContext = wrapNilContextFunc(ginkgo.PContext) XContext = wrapNilContextFunc(ginkgo.XContext) Describe = wrapContextFunc(ginkgo.Describe, false) FDescribe = wrapContextFunc(ginkgo.FDescribe, true) PDescribe = wrapNilContextFunc(ginkgo.PDescribe) XDescribe = wrapNilContextFunc(ginkgo.XDescribe) It = wrapItFunc(ginkgo.It, false) FIt = wrapItFunc(ginkgo.FIt, true) PIt = ginkgo.PIt XIt = ginkgo.XIt By = ginkgo.By JustBeforeEach = ginkgo.JustBeforeEach BeforeSuite = ginkgo.BeforeSuite AfterSuite = ginkgo.AfterSuite Skip = ginkgo.Skip Fail = ginkgo.Fail CurrentGinkgoTestDescription = ginkgo.CurrentGinkgoTestDescription GinkgoRecover = ginkgo.GinkgoRecover GinkgoT = ginkgo.GinkgoT RunSpecs = ginkgo.RunSpecs RunSpecsWithCustomReporters = ginkgo.RunSpecsWithCustomReporters RunSpecsWithDefaultAndCustomReporters = ginkgo.RunSpecsWithDefaultAndCustomReporters )
Functions ¶
func AfterAll ¶
func AfterAll(body func()) bool
AfterAll runs the function once after any test in context
func AfterFailed ¶ added in v1.0.3
func AfterFailed(body func()) bool
JustAfterFailed runs the function after test and JustAfterEach if the test has failed and before all AfterEach
func BeAnything ¶
func BeAnything() types.GomegaMatcher
BeAnything returns matcher that matches any value
func BeforeAll ¶
func BeforeAll(body func()) bool
BeforeAll runs the function once before any test in context
func BeforeEach ¶
BeforeEach runs the function before each test in context
func JustAfterEach ¶ added in v1.0.3
func JustAfterEach(body func()) bool
JustAfterEach runs the function just after each test, before all AfterEeach, AfterFailed and AfterAll
func RunAfterEach ¶ added in v1.0.3
func RunAfterEach(cs *scope)
RunAfterEach is a wrapper that executes all AfterEach functions that are stored in cs.afterEach array.
Types ¶
Click to show internal directories.
Click to hide internal directories.