Name: []string{"A", "B"}, Location: "file/b:4", State: "PASSED", Passed: true, RunTime: time.Minute, }))) }) }) Context("when the spec fails", func() { BeforeEach(func() { summary.State = types.SpecStateFailed summary.Failure = types.SpecFailure{ Message: "something failed!", Location: types.CodeLocation{ FileName: "some/file", LineNumber: 3, FullStackTrace: "some-stack-trace", }, } }) It("should error", func() { reporter.SpecDidComplete(summary) log := fetchLogs()[1] Ω(log.LogLevel).Should(Equal(lager.ERROR)) Ω(log.Source).Should(Equal("ginkgo")) Ω(log.Message).Should(Equal("spec.end")) Ω(log.Session).Should(Equal("1")) Ω(log.Error.Error()).Should(Equal("something failed!\nsome/file:3")) Ω(log.Data["summary"]).Should(Equal(jsonRoundTrip(SpecSummary{ Name: []string{"A", "B"},