Capturing failed unittest test cases in Python

Is there a way to run unittests in Python and the errors of those that fail are sent to Sentry?

Not that I know of, but why would you want this behavior? Seems very bad to me.

To clarify, it’s absolutely be possible to do, I just don’t know of how or any package that would help here.

Please share if you found a workaround for this issue.