github.com/onsi/ginkgo@v1.16.6-0.20211118180735-4e1925ba4c95/integration/_fixtures/skip_fixture/skip_fixture_test.go (about) 1 package skip_fixture_test 2 3 import ( 4 . "github.com/onsi/ginkgo" 5 . "github.com/onsi/gomega" 6 ) 7 8 var _ = It("handles top level skips", func() { 9 Skip("a top level skip on line 9") 10 println("NEVER SEE THIS") 11 }) 12 13 var _ = Describe("Excercising different skip modes", func() { 14 It("synchronous skip", func() { 15 Skip("a sync SKIP") 16 println("NEVER SEE THIS") 17 }) 18 }) 19 20 var _ = Describe("SKIP in a BeforeEach", func() { 21 BeforeEach(func() { 22 Skip("a BeforeEach SKIP") 23 println("NEVER SEE THIS") 24 }) 25 26 It("a SKIP BeforeEach", func() { 27 println("NEVER SEE THIS") 28 }) 29 }) 30 31 var _ = Describe("SKIP in an AfterEach", func() { 32 AfterEach(func() { 33 Skip("an AfterEach SKIP") 34 println("NEVER SEE THIS") 35 }) 36 37 It("a SKIP AfterEach", func() { 38 Expect(true).To(BeTrue()) 39 }) 40 })