Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions ginkgo_dsl.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,12 @@ func Describe(text string, body func()) bool {
return true
}

// You can wrap the method in your own meta framework and still get valid errors
func DescribeSkip(text string, skip int, body func()) bool {
globalSuite.PushContainerNode(text, body, types.FlagTypeNone, codelocation.New(skip + 1))
return true
}

//You can focus the tests within a describe block using FDescribe
func FDescribe(text string, body func()) bool {
globalSuite.PushContainerNode(text, body, types.FlagTypeFocused, codelocation.New(1))
Expand Down Expand Up @@ -340,6 +346,12 @@ func It(text string, body interface{}, timeout ...float64) bool {
return true
}

// You can wrap it with your own framework
func ItSkip(text string, skip int, body interface{}, timeout ...float64) bool {
globalSuite.PushItNode(text, body, types.FlagTypeNone, codelocation.New(skip + 1), parseTimeout(timeout...))
return true
}

//You can focus individual Its using FIt
func FIt(text string, body interface{}, timeout ...float64) bool {
globalSuite.PushItNode(text, body, types.FlagTypeFocused, codelocation.New(1), parseTimeout(timeout...))
Expand All @@ -352,6 +364,12 @@ func PIt(text string, _ ...interface{}) bool {
return true
}

// You can wrap PIt in your own framework
func PItSkip(text string, skip int, _ ...interface{}) bool {
globalSuite.PushItNode(text, func() {}, types.FlagTypePending, codelocation.New(skip + 1), 0)
return true
}

//You can mark Its as pending using XIt
func XIt(text string, _ ...interface{}) bool {
globalSuite.PushItNode(text, func() {}, types.FlagTypePending, codelocation.New(1), 0)
Expand Down