Fork me on GitHub
#testing
<
2017-09-26
>
noisesmith17:09:37

is there a tool that stops clojure.test on the first failure? of course I can just run the specific test, but it would be kind of cool to just run all of them, then stop on the first failed assertion

noisesmith18:09:23

workaround - running this before running tests

warn () {
  RED='\033[0;31m'
  NC='\033[0m'
  printf ${RED}${*}${NC}
}

barrier () {
  warn ';;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;'
}
the barrier function makes it easy to look up and see the first failure, even if I’m running the tests repeatedly