"time" ) var _ = Describe("Suite", func() { var ( specSuite *Suite fakeT *fakeTestingT fakeR *reporters.FakeReporter writer *Writer.FakeGinkgoWriter failer *Failer.Failer ) BeforeEach(func() { writer = Writer.NewFake() fakeT = &fakeTestingT{} fakeR = reporters.NewFakeReporter() failer = Failer.New() specSuite = New(failer) }) Describe("running a suite", func() { var ( runOrder []string randomizeAllSpecs bool randomSeed int64 focusString string parallelNode int parallelTotal int runResult bool hasProgrammaticFocus bool )
AfterEach(func() { server.Close() }) Describe("Streaming endpoints", func() { var ( reporterA, reporterB *reporters.FakeReporter forwardingReporter *ForwardingReporter suiteSummary *types.SuiteSummary setupSummary *types.SetupSummary specSummary *types.SpecSummary ) BeforeEach(func() { reporterA = reporters.NewFakeReporter() reporterB = reporters.NewFakeReporter() server.RegisterReporters(reporterA, reporterB) forwardingReporter = NewForwardingReporter(server.Address(), &http.Client{}, &fakeOutputInterceptor{}) suiteSummary = &types.SuiteSummary{ SuiteDescription: "My Test Suite", } setupSummary = &types.SetupSummary{ State: types.SpecStatePassed, } specSummary = &types.SpecSummary{