Skip to content

Instantly share code, notes, and snippets.

@firesofmay
Created August 18, 2012 11:08
Show Gist options
  • Save firesofmay/3386131 to your computer and use it in GitHub Desktop.
Save firesofmay/3386131 to your computer and use it in GitHub Desktop.
Saving test output to a string
(def msg (let [s (java.io.StringWriter.)]
(binding [*test-out* s]
(with-test-out (run-tests)))
(str s)))
;Thanks to jjcomer at #clojure IRC.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment