func buildDefaultReporter() Reporter { remoteReportingServer := os.Getenv("GINKGO_REMOTE_REPORTING_SERVER") if remoteReportingServer == "" { stenographer := stenographer.New(!config.DefaultReporterConfig.NoColor) return reporters.NewDefaultReporter(config.DefaultReporterConfig, stenographer) } else { return remote.NewForwardingReporter(remoteReportingServer, &http.Client{}, remote.NewOutputInterceptor()) } }
ginkgoConfig config.GinkgoConfigType suite *types.SuiteSummary example *types.ExampleSummary ) BeforeEach(func() { stenographer = st.NewFakeStenographer() reporterConfig = config.DefaultReporterConfigType{ NoColor: false, SlowSpecThreshold: 0.1, NoisyPendings: true, Verbose: true, } reporter = reporters.NewDefaultReporter(reporterConfig, stenographer) }) call := func(method string, args ...interface{}) st.FakeStenographerCall { return st.NewFakeStenographerCall(method, args...) } Describe("SpecSuiteWillBegin", func() { BeforeEach(func() { suite = &types.SuiteSummary{ SuiteDescription: "A Sweet Suite", NumberOfTotalExamples: 10, NumberOfExamplesThatWillBeRun: 8, } ginkgoConfig = config.GinkgoConfigType{