testing

Jakub Holý (HolyJak) 2021-12-08T10:11:52.012900Z

Is it possible to tell clojure.test to stop at the first test that fails?

vemv 2021-12-08T10:15:01.013100Z

not directly

vemv 2021-12-08T10:15:13.013500Z

"fail-fast" is a commonly found feature in alternative runners

vemv 2021-12-08T10:15:40.014200Z

a cheap trick you can do if needing something quick is wrapping a given is in assert

vemv 2021-12-08T10:17:59.014300Z

and if you like running tests from the repl, it can be easily done in pure clojure.test: https://github.com/reducecombine/.lein/blob/f01aec663ff4ac8f8e83f8eca93a13b2cf99aa4b/scripts/vemv.clj#L67-L79 (`reduced` does the fail-fasting) I invoke that from my repl (aided by a yasnippet) daily

Jakub Holý (HolyJak) 2021-12-08T10:44:14.014600Z

Yes, REPL is it. Thank you very much!

✌️ 1