gexec_suite_test.go 440 B

1234567891011121314151617181920212223242526
  1. package gexec_test
  2. import (
  3. . "github.com/onsi/ginkgo"
  4. . "github.com/onsi/gomega"
  5. "github.com/onsi/gomega/gexec"
  6. "testing"
  7. )
  8. var fireflyPath string
  9. func TestGexec(t *testing.T) {
  10. BeforeSuite(func() {
  11. var err error
  12. fireflyPath, err = gexec.Build("./_fixture/firefly")
  13. Expect(err).ShouldNot(HaveOccurred())
  14. })
  15. AfterSuite(func() {
  16. gexec.CleanupBuildArtifacts()
  17. })
  18. RegisterFailHandler(Fail)
  19. RunSpecs(t, "Gexec Suite")
  20. }