effectiveFailureStackTrace property
String?
get
effectiveFailureStackTrace
Stack text published to machine-readable and human-facing reports.
A failed result without a useful stack still needs a non-empty diagnostic body. Keeping this fallback on the result model makes JSON, HTML, JUnit, and console projections agree instead of each deciding independently.
Implementation
String? get effectiveFailureStackTrace {
if (status != TestStatus.failed) return stackTrace;
final value = stackTrace?.trim();
return value == null || value.isEmpty
? effectiveFailureMessage
: stackTrace;
}