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.

21 lines
366 B

  1. package testutil
  2. import (
  3. . "github.com/onsi/ginkgo"
  4. . "github.com/onsi/gomega"
  5. )
  6. func RunSuite(t GinkgoTestingT, name string) {
  7. RunDefer()
  8. SynchronizedBeforeSuite(func() []byte {
  9. RunDefer("setup")
  10. return nil
  11. }, func(data []byte) {})
  12. SynchronizedAfterSuite(func() {
  13. RunDefer("teardown")
  14. }, func() {})
  15. RegisterFailHandler(Fail)
  16. RunSpecs(t, name)
  17. }