mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-14 01:04:14 +00:00
22 lines
366 B
Go
22 lines
366 B
Go
|
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)
|
||
|
}
|