ginkgo icon indicating copy to clipboard operation
ginkgo copied to clipboard

Need more info to be written into report when panic in BeforeSuite

Open JiaYongfei opened this issue 4 years ago • 2 comments

panic in BeforeSuite didn't write ForwardedPanic into report. It's better we dump the same info as we did in each Spec. Related code to build the failure message for Spec: if specSummary.State == types.SpecStatePanicked { testCase.FailureMessage.Message += fmt.Sprintf("\n\nPanic: %s\n\nFull stack:\n%s", specSummary.Failure.ForwardedPanic, specSummary.Failure.Location.FullStackTrace) }

JiaYongfei avatar Jan 19 '21 08:01 JiaYongfei

This is fixed in v2

onsi avatar Apr 04 '21 18:04 onsi

V2 is beta and should now solve for this use case. Docs for using the beta are here.

onsi avatar Sep 30 '21 03:09 onsi