ginkgo
ginkgo copied to clipboard
Need more info to be written into report when panic in BeforeSuite
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) }
This is fixed in v2
V2 is beta and should now solve for this use case. Docs for using the beta are here.