Hi folks. I'm new to the Clojurians slack, so pardon me if it's rude to jump straight in with a question.
I'm trying to write a kaocha plugin that submits test results to an internal service. I want to be able to upload relevant details for failed tests. I understand how to find the captured test output, and for tests that fail because of a failed assertion that has all the details I need. But for tests that fail due to an unexpected exception, I can't see that any of the details (specifically, the exception details) are available in the test from my post-test fn. Am I missing it, or do exceptions only get reported immediately and are not available to plugins?
Try :bindings [kaocha.history/*history* true] in your tests.edn. This should add an extra :kaocha.testable/events to each testable. One of those events should be a :type :error, where the :actual is the exception. It's been a long time since I've looked at this and I didn't actually try this out now, so I hope this works, but I think it should.