You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
366 B
22 lines
366 B
9 years ago
|
package testutil
|
||
|
|
||
|
import (
|
||
|
. "github.com/onsi/ginkgo"
|
||
|
. "github.com/onsi/gomega"
|
||
|
)
|
||
|
|
||
|
func RunSuite(t GinkgoTestingT, name string) {
|
||
|
RunDefer()
|
||
|
|
||
|
SynchronizedBeforeSuite(func() []byte {
|
||
|
RunDefer("setup")
|
||
|
return nil
|
||
|
}, func(data []byte) {})
|
||
|
SynchronizedAfterSuite(func() {
|
||
|
RunDefer("teardown")
|
||
|
}, func() {})
|
||
|
|
||
|
RegisterFailHandler(Fail)
|
||
|
RunSpecs(t, name)
|
||
|
}
|