Documentation
¶
Index ¶
- Constants
- Variables
- func AfterAll(args ...interface{}) bool
- func AfterEach(args ...interface{}) bool
- func AfterSuite(userFunc func()) bool
- func BeforeAll(args ...interface{}) bool
- func BeforeEach(args ...interface{}) bool
- func BeforeSuite(userFunc func()) bool
- func By(text string, callback ...func())
- func Context(text string, callback ...interface{}) bool
- func DeferCleanup(args ...interface{})
- func Describe(text string, callback ...interface{}) bool
- func FContext(text string, callback ...interface{}) bool
- func FDescribe(text string, callback ...interface{}) bool
- func FIt(text string, callback ...interface{}) bool
- func FSpecify(text string, callback ...interface{}) bool
- func FWhen(text string, callback ...interface{}) bool
- func It(text string, callback ...interface{}) bool
- func JustAfterEach(args ...interface{}) bool
- func JustBeforeEach(args ...interface{}) bool
- func PContext(text string, callback ...interface{}) bool
- func PDescribe(text string, callback ...interface{}) bool
- func PIt(text string, callback ...interface{}) bool
- func PSpecify(text string, callback ...interface{}) bool
- func PWhen(text string, callback ...interface{}) bool
- func Run(m *testing.M, opts ...tracer.StartOption) int
- func RunSpecs(t ginkgo.GinkgoTestingT, description string, args ...interface{}) bool
- func Specify(text string, callback ...interface{}) bool
- func SynchronizedAfterSuite(allProcessBody func(), process1Body func()) bool
- func SynchronizedBeforeSuite(process1Body func() []byte, allProcessBody func([]byte)) bool
- func When(text string, callback ...interface{}) bool
- func XContext(text string, callback ...interface{}) bool
- func XDescribe(text string, callback ...interface{}) bool
- func XIt(text string, callback ...interface{}) bool
- func XSpecify(text string, callback ...interface{}) bool
- func XWhen(text string, callback ...interface{}) bool
- type GinkgoTInterface
- type GinkgoTestingT
- type GinkgoWriterInterface
Examples ¶
Constants ¶
View Source
const GINKGO_VERSION = ginkgo.GINKGO_VERSION + "+dd-trace-go"
View Source
const TestFrameworkName = "github.com/onsi/ginkgo/v2"
Variables ¶
View Source
var AbortSuite = ginkgo.AbortSuite
View Source
var Fail = ginkgo.Fail
View Source
var GinkgoConfiguration = ginkgo.GinkgoConfiguration
View Source
var GinkgoParallelProcess = ginkgo.GinkgoParallelProcess
View Source
var GinkgoRandomSeed = ginkgo.GinkgoRandomSeed
View Source
var GinkgoRecover = ginkgo.GinkgoRecover
View Source
var GinkgoT = ginkgo.GinkgoT
View Source
var GinkgoWriter = ginkgo.GinkgoWriter
View Source
var PauseOutputInterception = ginkgo.PauseOutputInterception
View Source
var ResumeOutputInterception = ginkgo.ResumeOutputInterception
View Source
var Skip = ginkgo.Skip
Functions ¶
func AfterSuite ¶
func AfterSuite(userFunc func()) bool
func BeforeEach ¶
func BeforeEach(args ...interface{}) bool
func BeforeSuite ¶
func BeforeSuite(userFunc func()) bool
func DeferCleanup ¶
func DeferCleanup(args ...interface{})
func JustAfterEach ¶
func JustAfterEach(args ...interface{}) bool
func JustBeforeEach ¶
func JustBeforeEach(args ...interface{}) bool
func Run ¶
func Run(m *testing.M, opts ...tracer.StartOption) int
Run is a helper function to run a `testing.M` object and gracefully stopping the tracer afterwards
func RunSpecs ¶
Example ¶
t := &testing.T{} // Get t from parameter Describe("Books", func() { It("can guess the category", func() { book := &books.Book{ Title: "Les Miserables", Author: "Victor Hugo", Pages: 2783, } Expect(book.CategoryByLength()).To(Equal("NOVEL")) fmt.Println("This is a novel!") }) }) RegisterFailHandler(Fail) RunSpecs(t, "Example Suite")
Output: This is a novel!
func SynchronizedAfterSuite ¶
func SynchronizedAfterSuite(allProcessBody func(), process1Body func()) bool
func SynchronizedBeforeSuite ¶
Types ¶
type GinkgoTInterface ¶
type GinkgoTInterface = ginkgo.GinkgoTInterface
type GinkgoTestingT ¶
type GinkgoTestingT = ginkgo.GinkgoTestingT
type GinkgoWriterInterface ¶
type GinkgoWriterInterface = ginkgo.GinkgoWriterInterface
Click to show internal directories.
Click to hide internal directories.