Hi,

I would like clojure.test to print name of each test as it runs. Currently 
it only prints on failure.
I would like it to print even when it passes.
Is there a way to do this? Maybe through writing some each fixture?

Currently I have written this function

(defn print-test
  []
  (println (last (map #(:name (meta %)) *testing-vars*))))

And I add this print-test to each test at the top.

(deftest valid-test
  (print-test)
  (let []
   ....))


Is there a better way?

Thanks.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to