test_description_test.go 654 B

12345678910111213141516171819202122232425
  1. package integration_test
  2. import (
  3. . "github.com/onsi/ginkgo"
  4. . "github.com/onsi/gomega"
  5. "github.com/onsi/gomega/gbytes"
  6. "github.com/onsi/gomega/gexec"
  7. )
  8. var _ = Describe("TestDescription", func() {
  9. var pathToTest string
  10. BeforeEach(func() {
  11. pathToTest = tmpPath("test_description")
  12. copyIn("test_description", pathToTest)
  13. })
  14. It("should capture and emit information about the current test", func() {
  15. session := startGinkgo(pathToTest, "--noColor")
  16. Eventually(session).Should(gexec.Exit(1))
  17. Ω(session).Should(gbytes.Say("TestDescription should pass:false"))
  18. Ω(session).Should(gbytes.Say("TestDescription should fail:true"))
  19. })
  20. })