On Sep 23, 2:51 am, MarkSwanson <mark.swanson...@gmail.com> wrote:
> I'm having trouble unit testing clojure code. To be sure I'm just
> testing clojure.test, I'm trying to test clojure.contrib.json.read.
>
> I'm sure I've missed it. test.clj contains defmethod report ... that
> has the FAIL println in it. I do not know why it is not getting
> called.


Hi Mark,

I think Timothy is right; something in your setup is hiding standard
output.  Here's what should happen:

    user> (use 'clojure.test)
    nil
    user> (require 'clojure.contrib.json.read)
    nil
    user> (run-tests 'clojure.contrib.json.read)

    Testing clojure.contrib.json.read

    Ran 17 tests containing 27 assertions.
    0 failures, 0 errors.
    nil
    user>

If you want a report of passing tests; you can run with the TAP output
adapter in clojure.test.tap.

-SS
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to