testing

2025-11-14T18:18:14.086879Z

How can I say for people that is not recommended to use clojure.test/is inside a function outside the execution of deftest?

2025-11-14T18:18:26.122779Z

for me is awful to debug the errors and make it complex

2025-11-14T18:18:44.788219Z

but Idk how to express this more clear, is there anyone that can help me on elaborating this?

Felipe 2025-11-18T13:15:54.180619Z

you can argue 1. is points to try-expr (https://github.com/clojure/clojure/blob/4b9eadccce2aaf97e64bcc8e35c05c529df8fdd2/src/clj/clojure/test.clj#L554-L570) 2. try-expr calls do-report when the assertion fails (https://github.com/clojure/clojure/blob/4b9eadccce2aaf97e64bcc8e35c05c529df8fdd2/src/clj/clojure/test.clj#L538-L546) 3. do-report clearly states Add file and line information to a test result and call report. (https://github.com/clojure/clojure/blob/4b9eadccce2aaf97e64bcc8e35c05c529df8fdd2/src/clj/clojure/test.clj#L351-L367) 4. report is concerned with output, so it is intended for human consumption (https://github.com/clojure/clojure/blob/4b9eadccce2aaf97e64bcc8e35c05c529df8fdd2/src/clj/clojure/test.clj#L324-L333)

🙏 1
2025-11-18T16:39:06.581689Z

Thanks ! 😄