Fork me on GitHub
#testing
<
2021-12-08
>
Jakub Holý (HolyJak)10:12:52

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

vemv10:12:01

not directly

vemv10:12:13

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

vemv10:12:40

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

vemv10:12:59

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)10:12:14

Yes, REPL is it. Thank you very much!

✌️ 1