3

./I have a test suite that has 4 specs, like this:

var _ = Describe("Start a Cycle", func() {
  It("test 1", func() {...})
  It("test 2", func() {...})
  It("test 3", func() {...})
  It("test 4", func() {...})
})

I would like to run only "test 1" , the following command doesn't work, even though the documentation says it should:

ginkgo testDir --focus "test 1"

Can someone tell me what I did wrong? Thanks!

jliao
  • 121
  • 1
  • 7

1 Answers1

7

It turns out I have to put --focus before the testDir, the following command works

ginkgo --focus "test 1" testDir
jliao
  • 121
  • 1
  • 7