xRetry icon indicating copy to clipboard operation
xRetry copied to clipboard

[enhancement request] allow logging test failure reason

Open dylbarne opened this issue 9 months ago • 1 comments

In addition to the diagnostic logging that occurs in RetryTestCaseRunner, it would be nice to also be able to optionally turn on logging the particular test run failure reason/exception.

I am not too familiar with xUnit inner workings, though from their similar retry example it seems like maybe these could be pulled from ExceptionAggregator if they are considered "exceptions" or maybe these messages are already accessible elsewhere.

For my personal usecase, in the context of a build pipeline this additional logging functionality would be a valuable addition for troubleshooting why a particular test may be flaky or failing even though ultimately it is passing within the max retries.

dylbarne avatar May 25 '24 16:05 dylbarne