Fork me on GitHub

I have a macro in Clojure. When that macro is “executed”/expanded by running the tests, I want to be able to detect that. What is the simplest solution to that? My idea is to detect if the :test profile is active (which it is when running the tests), but I’m not sure what the easiest way to do that.