@holyjak yes, there's a built-in plugin for that, have a look at the documentation
ok, thanks, will have a better look then before then, Thaanks for pointing me to the plugins!
For posterity - I guess it is --plugin kaocha.plugin/profiling
Hi there! My codebase has good a lot of Reflection Warnings that I would like to intercept and fail in CI. Is there some facility I can use with kaocha in order to achieve that?
(is it a worthy idea anyways?
Not Kaocha specific, but it looks like the Clojure source has a non-exported macro that does this: https://github.com/clojure/clojure/blob/cbb3fdf787a00d3c1443794b97ed7fe4bef8e888/test/clojure/test_helper.clj#L126. You could try copying it to your test suite (probably with some sort of copyright notice)?
As for whether it's a good idea...it depends on how much reflection you have, and how important it is to avoid. If you have a large existing codebase that you haven't made special efforts to avoid reflection in, it might be pretty noisy. But if you're starting with relatively little reflection, and getting it down to zero is a priority, I could see it being helpful.
Are you trying to avoid reflection for performance reasons or for native-image compatibility or for some other reason?