Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[enhancement request] allow logging test failure reason #242

Open
dylbarne opened this issue May 25, 2024 · 1 comment
Open

[enhancement request] allow logging test failure reason #242

dylbarne opened this issue May 25, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@dylbarne
Copy link

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.

@JoshKeegan
Copy link
Owner

Hopefully a user would understand why a test was flaky/could fail before enabling retries, but I'm not opposed to the additional logging. A PR adding this would be welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants