I've put in "production" my kaocha-retry plugin, and discovered that it doesn't actually handle the situation where exceptions are thrown instead of normal failures
guess I have to deal with that too, I just need to add some try/except I guess?
and rethrow the exception if the counter reached the max retries allowed
something like this seems to work https://github.com/AndreaCrotti/kaocha-retry/pull/2/files#diff-59afb0a2da343c95c04627267cc4b61e43ea30fb391aeb86b586d698c79fb400R18
should maybe improve the reporting though
right, exceptions are generally handled by (is ,,,)
, which reports them as errors, but the when the exception happens outside of an assertion it needs to be handled by the test type. In this case you should probably replicate that behavior to prevent it from breaking out of your retry loop
https://github.com/lambdaisland/kaocha/blob/main/src/kaocha/type/var.clj#L31-L34
ah cool I see