}) It("should announce the suite, announce that it's a parallel run, then announce the number of specs", func() { Ω(stenographer.Calls()).Should(HaveLen(3)) Ω(stenographer.Calls()[0]).Should(Equal(call("AnnounceSuite", "A Sweet Suite", ginkgoConfig.RandomSeed, true, false))) Ω(stenographer.Calls()[1]).Should(Equal(call("AnnounceParallelRun", 1, 2, 10, 20, false))) Ω(stenographer.Calls()[2]).Should(Equal(call("AnnounceNumberOfSpecs", 8, 10, false))) }) }) }) Describe("BeforeSuiteDidRun", func() { Context("when the BeforeSuite passes", func() { It("should announce nothing", func() { reporter.BeforeSuiteDidRun(&types.SetupSummary{ State: types.SpecStatePassed, }) Ω(stenographer.Calls()).Should(BeEmpty()) }) }) Context("when the BeforeSuite fails", func() { It("should announce the failure", func() { summary := &types.SetupSummary{ State: types.SpecStateFailed, } reporter.BeforeSuiteDidRun(summary) Ω(stenographer.Calls()).Should(HaveLen(1)) Ω(stenographer.Calls()[0]).Should(Equal(call("AnnounceBeforeSuiteFailure", summary, false, true)))