github.com/onsi/ginkgo@v1.16.6-0.20211118180735-4e1925ba4c95/integration/tags_test.go (about) 1 package integration_test 2 3 import ( 4 . "github.com/onsi/ginkgo" 5 . "github.com/onsi/gomega" 6 "github.com/onsi/gomega/gexec" 7 ) 8 9 var _ = Describe("Tags", func() { 10 BeforeEach(func() { 11 fm.MountFixture("tags") 12 }) 13 14 It("should honor the passed in -tags flag", func() { 15 session := startGinkgo(fm.PathTo("tags"), "--no-color") 16 Eventually(session).Should(gexec.Exit(0)) 17 output := string(session.Out.Contents()) 18 Ω(output).Should(ContainSubstring("Ran 1 of 1 Specs")) 19 20 session = startGinkgo(fm.PathTo("tags"), "--no-color", "-tags=complex_tests") 21 Eventually(session).Should(gexec.Exit(0)) 22 output = string(session.Out.Contents()) 23 Ω(output).Should(ContainSubstring("Ran 3 of 3 Specs")) 24 }) 25 })