ginkgoext

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 10 Imported by: 3

Documentation

Index

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 AfterEach

func AfterEach(body func(), timeout ...float64) bool

AfterEach runs the function after each 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

func BeforeEach(body interface{}, timeout ...float64) bool

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 AfterEach, 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

type Done

type Done ginkgo.Done

Jump to

Keyboard shortcuts

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